mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
Addded: int getMaxPlayers()
This commit is contained in:
parent
10f4f33ed0
commit
8932430aed
@ -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"));
|
||||
}
|
||||
|
@ -136,6 +136,10 @@ public final class CraftServer implements Server {
|
||||
return matchedPlayers;
|
||||
}
|
||||
|
||||
public int getMaxPlayers() {
|
||||
return server.getMaxPlayers();
|
||||
}
|
||||
|
||||
public PluginManager getPluginManager() {
|
||||
return pluginManager;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user