Archiviert
13
0

Merge branch 'noSecondHand' of SteamWar/LobbySystem into master

Dieser Commit ist enthalten in:
Lixfel 2020-03-24 06:37:03 +01:00 committet von Gitea
Commit b05d4c6f4a

Datei anzeigen

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