Commit Graph
4 Commits
Author SHA1 Message Date
Aeltumn b7bb062734 Allow proper checking of empty item stacks
This adds a method to check if an item stack is empty or not. This mirrors vanilla's implementation of the same method.
2023-08-28 13:41:09 +02:00
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
Aeltumn 675028a699 Allow proper checking of empty item stacks 2023-08-28 13:44:09 +02:00
Aeltumn 1fc4ca9178 Implement OfflinePlayer#isConnected 2023-08-24 13:05:30 +02:00