mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Add a title to [Disposal] and [Free] sign inventory
This commit is contained in:
parent
25e4096a12
commit
b3bad6a35a
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ public class SignDisposal extends EssentialsSign
|
|||
@Override
|
||||
protected boolean onSignInteract(final ISign sign, final User player, final String username, final IEssentials ess)
|
||||
{
|
||||
player.getBase().openInventory(ess.getServer().createInventory(player.getBase(), 36));
|
||||
player.getBase().openInventory(ess.getServer().createInventory(player.getBase(), 36, "Disposal"));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public class SignFree extends EssentialsSign
|
|||
}
|
||||
|
||||
item.setAmount(item.getType().getMaxStackSize());
|
||||
Inventory invent = ess.getServer().createInventory(player.getBase(), 36);
|
||||
Inventory invent = ess.getServer().createInventory(player.getBase(), 36, item.getItemMeta().getDisplayName());
|
||||
for (int i = 0; i < 36; i++) {
|
||||
invent.addItem(item);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue