mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-23 19:57:43 +00:00
Fill the entire sign with free goodness
This commit is contained in:
parent
79cd8d6065
commit
cf000b04e4
|
@ -34,8 +34,8 @@ public class SignFree extends EssentialsSign
|
|||
throw new SignException(_("cantSpawnItem", "Air"));
|
||||
}
|
||||
|
||||
item.setAmount(item.getType().getMaxStackSize());
|
||||
Inventory i = ess.getServer().createInventory(player, InventoryType.CHEST);
|
||||
item.setAmount(item.getType().getMaxStackSize() * 36);
|
||||
Inventory i = ess.getServer().createInventory(player, 36);
|
||||
i.addItem(item);
|
||||
player.openInventory(i);
|
||||
Trade.log("Sign", "Free", "Interact", username, null, username, new Trade(item, ess), sign.getBlock().getLocation(), ess);
|
||||
|
|
Loading…
Reference in a new issue