This commit is contained in:
Steffion 2013-10-17 20:39:44 +02:00
parent 8986099701
commit 785eef47e9

View File

@ -16,7 +16,6 @@ import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.event.inventory.InventoryType.SlotType;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
@ -30,7 +29,7 @@ public class OnInventoryClickEvent implements Listener {
for (Arena arena : W.arenaList) {
if (arena.playersInArena.contains(player)
&& !arena.seekers.contains(player)) {
if (event.getSlot() == 8 || event.getSlotType() == SlotType.ARMOR) {
if (event.getSlot() == 8 || event.getSlot() == 39) {
event.setCancelled(true);
}
}