Jump to content
  • 0
Sign in to follow this  
mdjguy

Force Equip? (562)

Question

Well I'm thinking of starting a new project but before I do this I need to know how to Force Equip a player like if he does something (clicking something, command, idk yet) and then his equipment will change in something else?

Kthxforhelp :rolleyes:

**Edit

||||||||||||||||||||| LOOK AT MY LAST POST |||||||||||||||||||||||||||| Edited by mdjguy

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
equipment.java ...
It's not that hard if you have eyes.

Share this post


Link to post
Share on other sites
  • 0
Okay i found this [CODE] player.getEquipment().set(Slot, Item);[/CODE] Well how to make it so I can just use an Item ID for the Item? Like player.getEquipment().set(3, ITEMID); ? Edited by mdjguy

Share this post


Link to post
Share on other sites
  • 0
it would be used like this

player.getEquipment().set(EQUIPSlot, ItemID);

lets say you wanna wear a whip
just call this
player.getEquipment().set(3, 4151);

Share this post


Link to post
Share on other sites
  • 0
[quote name='girofsilgar']it would be used like this

player.getEquipment().set(EQUIPSlot, ItemID);

lets say you wanna wear a whip
just call this
player.getEquipment().set(3, 4151);[/QUOTE]

Naaa it will see 4151 as an int.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×