mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
Fill the entire sign with free goodness
This commit is contained in:
@@ -34,8 +34,8 @@ public class SignFree extends EssentialsSign
|
|||||||
throw new SignException(_("cantSpawnItem", "Air"));
|
throw new SignException(_("cantSpawnItem", "Air"));
|
||||||
}
|
}
|
||||||
|
|
||||||
item.setAmount(item.getType().getMaxStackSize());
|
item.setAmount(item.getType().getMaxStackSize() * 36);
|
||||||
Inventory i = ess.getServer().createInventory(player, InventoryType.CHEST);
|
Inventory i = ess.getServer().createInventory(player, 36);
|
||||||
i.addItem(item);
|
i.addItem(item);
|
||||||
player.openInventory(i);
|
player.openInventory(i);
|
||||||
Trade.log("Sign", "Free", "Interact", username, null, username, new Trade(item, ess), sign.getBlock().getLocation(), ess);
|
Trade.log("Sign", "Free", "Interact", username, null, username, new Trade(item, ess), sign.getBlock().getLocation(), ess);
|
||||||
|
Reference in New Issue
Block a user