mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-27 10:31:31 +01: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 New Issue
Block a user