1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 14:46:32 +02:00

Fill the entire sign with free goodness

This commit is contained in:
md_5
2012-03-15 20:55:56 +11:00
parent b18b2864bd
commit 0db9353e87

View File

@@ -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);