1

Plugin Help!

Link3d 11/4/14 1:42 am
678
11/5/2014 1:14 pm
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?
Posted by
Link3d
Level 2 : Apprentice Crafter
0

  Have something to say?

JoinSign in

5

Samstrongman
11/05/2014 6:56 am
Level 48 : Master Ninja
player.getInventory().addItem(ItemStack (Items.WHATEVER));
1
Pixel
11/05/2014 12:41 pm
Level 43 : Master Mage
This is very wrong.

player.getInventory().addItem(new ItemStack(Material.ITEM_NAME));
1
anonpmc844841
11/05/2014 1:14 pm
Level 13 : Journeyman Miner
[deleted]
1
ArcaneGamer-
11/05/2014 12:35 pm
Level 29 : Expert Modder
That'd explain the add items to inventory but what about the cancel and stuff?
1
ArcaneGamer-
11/04/2014 2:30 am
Level 29 : Expert Modder
What was the purpose of the plugin? That might help figuring out the code.
1

Welcome