When a player disconnects and then reconnects to my server, calling player.isValid() returns false, and it makes some things not work, like player.setScoreboard() (not showing any scoreboard) and player.teleport() (which returns false). How can isValid() return false? The documentation says that it "returns false if the entity has died, been despawned for some other reason, or has not been added to the world" - but it can't be dead or despawned, as the player can still move around and break/place blocks, and "not been added to the world" doesn't make sense to me either, since the player can interact with it... is there some other reason why isValid can return false?
- Version Output
-
[16:38:46 INFO]: Checking version, please wait...
[16:38:47 INFO]: This server is running Paper version git-Paper-424 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 37df121)
You are running the latest version
Previous version: git-Paper-516 (MC: 1.19.4)