mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +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>();
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue