Fixed KittyCannon...

This commit is contained in:
Norbi Peti 2015-11-28 01:31:34 +01:00
parent 682af5c0a0
commit 788e15a22d
4 changed files with 3 additions and 4 deletions

Binary file not shown.

View file

@ -608,11 +608,10 @@ public class Commands implements CommandExecutor {
return;
}
MinigamePlayer mp = Minigames.plugin.pdata.getMinigamePlayer(player);
if (!player.isOp()
&& (!mp.isInMinigame() || mp.getMinigame().getName(false)
.equalsIgnoreCase(KittyCannonMinigame))) {
if (!(mp.isInMinigame() && mp.getMinigame().getName(false)
.equalsIgnoreCase(Commands.KittyCannonMinigame))) {
SendMessage(player,
"§You can only use KittyCannon in it's minigame!");
"§cYou can only use KittyCannon in it's minigame!");
return;
}
try {