IceSpike Cooldown

This commit is contained in:
MistPhizzle 2014-07-02 09:53:23 -04:00
parent 9664869859
commit 4d559dcffa

View file

@ -56,9 +56,13 @@ public class IceSpike {
private List<LivingEntity> damaged = new ArrayList<LivingEntity>(); private List<LivingEntity> damaged = new ArrayList<LivingEntity>();
public IceSpike(Player player) { public IceSpike(Player player) {
if (cooldowns.containsKey(player)) if (cooldowns.containsKey(player)) {
if (cooldowns.get(player) + cooldown >= System.currentTimeMillis()) if (cooldowns.get(player) + cooldown >= System.currentTimeMillis()) {
return; return;
} else {
cooldowns.remove(player.getName());
}
}
try { try {
this.player = player; this.player = player;