From a72a6cba8ea642d73fd5f135f8e9bb54f180c389 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 6 Feb 2011 13:40:31 +0100 Subject: [PATCH] Add Server.getMaxPlayers By: Erik Broes --- paper-api/src/main/java/org/bukkit/Server.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index a85bdccf13..e97623d879 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -31,6 +31,13 @@ public interface Server { */ public Player[] getOnlinePlayers(); + /** + * Get the maximum amount of players which can login to this server + * + * @return The amount of players this server allows + */ + public int getMaxPlayers(); + /** * Broadcast a message to all players. *