spigot how to make an inventory
Inventory inv = Bukkit.createInventory(player, yourSize, "My Inventory Name");
spigot how to make an inventory
Inventory inv = Bukkit.createInventory(player, yourSize, "My Inventory Name");
bukkit creating an inventory window
IconMenu menu = new IconMenu("My Fancy Menu", 9, new IconMenu.OptionClickEventHandler() {
@Override
public void onOptionClick(IconMenu.OptionClickEvent event) {
event.getPlayer().sendMessage("You have chosen " + event.getName());
event.setWillClose(true);
}
}, plugin)
.setOption(3, new ItemStack(Material.APPLE, 1), "Food", "The food is delicious")
.setOption(4, new ItemStack(Material.IRON_SWORD, 1), "Weapon", "Weapons are for awesome people")
.setOption(5, new ItemStack(Material.EMERALD, 1), "Money", "Money brings happiness");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us