From 73b3f6def250fa367d2d8a29cd3782e468c4b187 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 3 Sep 2011 00:48:41 +0100 Subject: [PATCH] ... Actually push the OfflinePlayer interface! By: Dinnerbone --- .../main/java/org/bukkit/OfflinePlayer.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 paper-api/src/main/java/org/bukkit/OfflinePlayer.java diff --git a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java new file mode 100644 index 0000000000..ffb32ee9d9 --- /dev/null +++ b/paper-api/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(); +}