This commit is contained in:
samczsun 2017-03-11 01:01:44 -05:00 committed by cnr
parent 4ad5cede14
commit c95fea066c
2 changed files with 11 additions and 2 deletions

View File

@ -5,6 +5,8 @@ import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.entity.EntityRegainHealthEvent;
import mineplex.minecraft.game.classcombat.Skill.event.SkillTriggerEvent;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.GameType;
import nautilus.game.arcade.events.GameStateChangeEvent;
@ -17,6 +19,7 @@ import nautilus.game.arcade.game.games.champions.kits.KitRanger;
import nautilus.game.arcade.game.games.gladiators.Arena;
import nautilus.game.arcade.game.games.gladiators.ArenaType;
import nautilus.game.arcade.game.games.gladiators.Gladiators;
import nautilus.game.arcade.game.games.gladiators.RoundState;
import nautilus.game.arcade.kit.Kit;
/**
@ -89,4 +92,10 @@ public class ChampionsGladiators extends Gladiators
return "Champions Gladiators";
}
@EventHandler
public void skill(SkillTriggerEvent event)
{
if (getRoundState() != RoundState.FIGHTING)
event.SetCancelled(true);
}
}