Add method to determine if player is in OnlineMode

This commit is contained in:
Leymooo
2019-09-04 01:43:25 +03:00
parent e8d4db517d
commit fd367c6efd
3 changed files with 17 additions and 3 deletions

View File

@@ -65,6 +65,13 @@ public interface Player extends CommandSource, InboundConnection, ChannelMessage
*/
long getPing();
/**
* Returns the player's connection status.
*
* @return true if the player is authenticated with Mojang servers
*/
boolean isOnlineMode();
/**
* Sends a chat message to the player's client.
*