summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/ServerConfigurationManager.java6
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
index 61c02e4b..7fce5e72 100644
--- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java
+++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
@@ -56,6 +56,12 @@ public class ServerConfigurationManager {
this.j();
}
+ // CraftBukkit start
+ public int getMaxPlayers() {
+ return this.e;
+ }
+ // CraftBukkit end
+
public void a(WorldServer worldserver) {
this.l = new PlayerNBTManager(new File(worldserver.t, "players"));
}
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index df8b7c60..73d4d1d1 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -136,6 +136,10 @@ public final class CraftServer implements Server {
return matchedPlayers;
}
+ public int getMaxPlayers() {
+ return server.getMaxPlayers();
+ }
+
public PluginManager getPluginManager() {
return pluginManager;
}