SteamWar/FightSystem
Archiviert
13
1

No mistake drops anymore

Dieser Commit ist enthalten in:
Lixfel 2019-09-07 10:46:12 +02:00
Ursprung 513bcaee11
Commit 07d1e14888

Datei anzeigen

@ -8,6 +8,7 @@ import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryDragEvent; import org.bukkit.event.inventory.InventoryDragEvent;
import org.bukkit.event.inventory.InventoryPickupItemEvent; import org.bukkit.event.inventory.InventoryPickupItemEvent;
import org.bukkit.event.inventory.InventoryType; import org.bukkit.event.inventory.InventoryType;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.inventory.Inventory; import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
@ -61,4 +62,9 @@ public class InventoryListener extends BasicListener {
public void onDropPickup(InventoryPickupItemEvent e){ public void onDropPickup(InventoryPickupItemEvent e){
e.setCancelled(true); e.setCancelled(true);
} }
@EventHandler
public void onDropping(PlayerDropItemEvent e){
e.setCancelled(true);
}
} }