mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Addded: int getMaxPlayers()
This commit is contained in:
@@ -56,6 +56,12 @@ public class ServerConfigurationManager {
|
|||||||
this.j();
|
this.j();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CraftBukkit start
|
||||||
|
public int getMaxPlayers() {
|
||||||
|
return this.e;
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
public void a(WorldServer worldserver) {
|
public void a(WorldServer worldserver) {
|
||||||
this.l = new PlayerNBTManager(new File(worldserver.t, "players"));
|
this.l = new PlayerNBTManager(new File(worldserver.t, "players"));
|
||||||
}
|
}
|
||||||
|
@@ -136,6 +136,10 @@ public final class CraftServer implements Server {
|
|||||||
return matchedPlayers;
|
return matchedPlayers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getMaxPlayers() {
|
||||||
|
return server.getMaxPlayers();
|
||||||
|
}
|
||||||
|
|
||||||
public PluginManager getPluginManager() {
|
public PluginManager getPluginManager() {
|
||||||
return pluginManager;
|
return pluginManager;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user