Jump to content

Removing Items from player Server Sided


ItzPray

Recommended Posts

I am trying to remove items from the player on the server side. Even though I am removing the Item from the player when I am on the server there are still ghost items in the players inventory. The only way for it to actually update the removed items on the server is for the player to move the item into a new slot in their inventory. I am using the method Inventory.removeItem(ItemStack) and I am also using Inventory.removeItem(SlotID, RemoveAmount). This is being done by the client sending a packet to the server and then on the server I call those methods to remove the item but that does not work. If someone could help me on this topic that would be greatly appreciated .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.