summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnimosity <nullcline@gmail.com>2011-02-04 14:12:33 +0800
committerEvilSeph <evilseph@unaligned.org>2011-02-05 01:36:41 -0500
commit8932430aed21274e03189ae340bd20a9ea8b5761 (patch)
treeb3e7a4f41310c0fcb053e74fc363e45e176bad6e /src
parent10f4f33ed03a2dc7f824daee69d8959dc0008b85 (diff)
downloadcraftbukkit-8932430aed21274e03189ae340bd20a9ea8b5761.tar
craftbukkit-8932430aed21274e03189ae340bd20a9ea8b5761.tar.gz
craftbukkit-8932430aed21274e03189ae340bd20a9ea8b5761.tar.lz
craftbukkit-8932430aed21274e03189ae340bd20a9ea8b5761.tar.xz
craftbukkit-8932430aed21274e03189ae340bd20a9ea8b5761.zip
Addded: int getMaxPlayers()
Diffstat (limited to 'src')
-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;
}