mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Addded: int getMaxPlayers()
This commit is contained in:
parent
10f4f33ed0
commit
8932430aed
2 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue