Hello I am baffled as my friend tried to help me with coding and he saids to me:
Cancel, add ItemStack to backpack, remove Item
He said put that into your code. But he said first translate it and then you add it. Anyone know how to?
Cancel, add ItemStack to backpack, remove Item
He said put that into your code. But he said first translate it and then you add it. Anyone know how to?
5
player.getInventory().addItem(ItemStack (Items.WHATEVER));
This is very wrong.
player.getInventory().addItem(new ItemStack(Material.ITEM_NAME));
player.getInventory().addItem(new ItemStack(Material.ITEM_NAME));
[deleted]
That'd explain the add items to inventory but what about the cancel and stuff?
What was the purpose of the plugin? That might help figuring out the code.
