Add method to determine if player is in OnlineMode
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user