As in before you can cast the next one..?
You can use System.currentTimeMillis() timers.
In Player.java or Client.java you have a long called lastSpellCast or something.
Everytime you cast, you check:
And once you've successfully casted a spell, you do player.lastSpellCast = System.currentTimeMillis()Code:if(player.lastSpellCast - System.currentTimeMillis() > (the delay you want)) { return; //The barrage code below is never read. }
Get it..?