mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-07 19:28:11 +01:00
Prevent dropping items into backpack in creative
This commit is contained in:
parent
5897082f76
commit
de89970c49
@ -163,7 +163,7 @@ public void onItemClick(InventoryClickEvent event)
|
||||
{
|
||||
if(event.getAction() == InventoryAction.SWAP_WITH_CURSOR)
|
||||
{
|
||||
if(plugin.isDisabled(player) != WorldBlacklistMode.None || !player.hasPermission("backpack.use")) return;
|
||||
if(plugin.isDisabled(player) != WorldBlacklistMode.None || !player.hasPermission("backpack.use") || !plugin.isPlayerGameModeAllowed(player)) return;
|
||||
Backpack backpack = plugin.getBackpackCachedOnly(player);
|
||||
if(backpack != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user