High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies
Go to file
Aeltumn 71fdafca71 Add OfflinePlayer#isConnected
This adds an alternative to OfflinePlayer#isOnline that returns true only if the same instance of the player is still online. This is generally more useful than isOnline as it allows you to determine if you have an instance of a Player that still exists. If a player relogs an old Player instance becomes unlinked leading to e.g. messages sent to the old player no longer arriving despite isOnline returning true. Checking against isConnected is more useful there to discard invalid instances.
2023-08-24 13:05:07 +02:00
paper-api Add OfflinePlayer#isConnected 2023-08-24 13:05:07 +02:00