mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
IceSpike Cooldown
This commit is contained in:
parent
9664869859
commit
4d559dcffa
1 changed files with 6 additions and 2 deletions
|
@ -56,9 +56,13 @@ public class IceSpike {
|
|||
private List<LivingEntity> damaged = new ArrayList<LivingEntity>();
|
||||
|
||||
public IceSpike(Player player) {
|
||||
if (cooldowns.containsKey(player))
|
||||
if (cooldowns.get(player) + cooldown >= System.currentTimeMillis())
|
||||
if (cooldowns.containsKey(player)) {
|
||||
if (cooldowns.get(player) + cooldown >= System.currentTimeMillis()) {
|
||||
return;
|
||||
} else {
|
||||
cooldowns.remove(player.getName());
|
||||
}
|
||||
}
|
||||
try {
|
||||
this.player = player;
|
||||
|
||||
|
|
Loading…
Reference in a new issue