Solved delete this

Discussion in 'Plugin Development' started by ritonda66, Jan 27, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    ritonda66

    delete it pls
     
  2. Offline

    Birdytrap

    Well, I'm a newbie in bukkit, but I think showing the code would be a good idea...
     
  3. Offline

    ritonda66

    added the part

    nobody knows solution?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  4. Offline

    Jombi

    So you click sign #1, get the kit. Then you click sign #2 and it clears your inventory and gives you that kit. What's the point of clicking sign #1 then?

    Throw in debug messages to see where its happening in your code. Then you can narrow down from there.
     
  5. Offline

    ritonda66

    Someone did that acci
    Well I click on kit #1 to see what kit it is. Then I click on #2 and use it to fight. When I use it in fight I get somewhy the sword from kit#1. Now I'll debug everything when my server has 0 players.
     
  6. Offline

    pzxc

    Use the deprecated function updateInventory() whenever you change someone's inventory, like giving them a kit, and it will prevent the ghosted items problem you are having.

    Sucks having to use a deprecated method, but there are several situations like this one where it's the only way to ensure what a player sees is actually what they have when you change their inventory.
     
  7. Offline

    ritonda66

    I have 2 updateInventorys.
    1 Before I give all items
    second After i gave all items.
    Do i need to add more?

    EDIT:IT looks like the Sword(actually the item in your hand) doesn't get updated properly. When I change the kit, In my inventory there is the new sword, but new players still see the old one.
     
Thread Status:
Not open for further replies.

Share This Page