diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/OfflinePlayer.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/OfflinePlayer.java b/src/main/java/org/bukkit/OfflinePlayer.java new file mode 100644 index 00000000..ffb32ee9 --- /dev/null +++ b/src/main/java/org/bukkit/OfflinePlayer.java @@ -0,0 +1,19 @@ +package org.bukkit; + +import org.bukkit.permissions.ServerOperator; + +public interface OfflinePlayer extends ServerOperator { + /** + * Checks if this player is currently online + * + * @return true if they are online + */ + public boolean isOnline(); + + /** + * Returns the name of this player + * + * @return Player name + */ + public String getName(); +} |