diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 1019423f6c..503901cd9f 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -28,6 +28,16 @@ public interface Server { */ public Player[] getOnlinePlayers(); + /** + * Gets a player object by the given username + * + * This method may not return objects for offline players + * + * @param name Name to look up + * @return Player if it was found, otherwise null + */ + public Player getPlayer(String name); + /** * Gets the PluginManager for interfacing with plugins *