@@ -631,6 +631,13 @@ public final class CraftServer implements Server {
|
||||
return playerList.getMaxPlayers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setMaxPlayers(int maxPlayers) {
|
||||
Preconditions.checkArgument(maxPlayers >= 0, "maxPlayers must be >= 0");
|
||||
|
||||
playerList.maxPlayers = maxPlayers;
|
||||
}
|
||||
|
||||
// NOTE: These are dependent on the corresponding call in MinecraftServer
|
||||
// so if that changes this will need to as well
|
||||
@Override
|
||||
@@ -1954,6 +1961,11 @@ public final class CraftServer implements Server {
|
||||
return console.getMotd();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setMotd(String motd) {
|
||||
console.setMotd(motd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WarningState getWarningState() {
|
||||
return warningState;
|
||||
|
||||
Reference in New Issue
Block a user