Dont really understand what you mean could you explain a little more?
|
Hi!
need help with :
when i click on teleport it contains player have 28 free space on inventory and nothing on equipment.
Thanks for helping!
Respect
skype : benn.bm
What? You want to know if a player has 28 free spaces in his inventory and is wielding nothing?
that would check if the player has 28 free slots in their inventoryCode:if (player.getInventory().getFreeSlots() == 28)
This should work for equipment however I havent tested it
Code:if (player.getEquipment().getItems().getItems() == null)
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |