mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
update inventory
This commit is contained in:
@@ -37,6 +37,7 @@ public class SignFree extends EssentialsSign
|
|||||||
item.setAmount(item.getType().getMaxStackSize());
|
item.setAmount(item.getType().getMaxStackSize());
|
||||||
InventoryWorkaround.addItem(player.getInventory(), true, item);
|
InventoryWorkaround.addItem(player.getInventory(), true, item);
|
||||||
player.sendMessage("Item added to your inventory.");
|
player.sendMessage("Item added to your inventory.");
|
||||||
|
player.updateInventory();
|
||||||
//TODO: wait for a fix in bukkit
|
//TODO: wait for a fix in bukkit
|
||||||
//Problem: Items can be duplicated
|
//Problem: Items can be duplicated
|
||||||
//Inventory i = ess.getServer().createInventory(player, InventoryType.CHEST);
|
//Inventory i = ess.getServer().createInventory(player, InventoryType.CHEST);
|
||||||
|
Reference in New Issue
Block a user