Minecraft – My friend loses all his items upon disconnect

minecraft-java-editionminecraft-java-edition-server

I'm hosting a minecraft server and it's just me and my friend playing. Every time he disconnects and comes back, all of his inventory is gone. However, the things in the chest remain there.

Anyone have any idea what could be causing this? Can't even log out for the night and come back with everything. This issue doesn't happen with me, but only him. Again, we're the only two that are playing.

Best Answer

Try to use this command:

/gamerule keepinventory true