Posted August 25, 20223 yr 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 .
August 25, 20223 yr Author Nevermind I fixed it, it was because I was grabbing the Inventory from the client side and using it on the server side which was still deleting the item on client side even though it was running on server side.
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.