Archiviert
13
0

added EventHandler for SwapItemsInHands as expansion for the

InventorryClick Eventhandler
Dieser Commit ist enthalten in:
Jan9103 2020-03-22 14:41:09 +01:00
Ursprung 81e8d19f70
Commit 7a8b4a228d

Datei anzeigen

@ -6,6 +6,7 @@ import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.event.player.PlayerPickupItemEvent;
import org.bukkit.event.player.PlayerSwapHandItemsEvent;
public class PlayerInventoryListener implements Listener {
@ -24,5 +25,10 @@ public class PlayerInventoryListener implements Listener {
event.setCancelled(true);
}
@EventHandler
public void handlePlayerSwapHandItemsEvent(PlayerSwapHandItemsEvent event) {
event.setCancelled(true);
}
}