Set the maximum number of player on the server through the config.json (#1001)

* Show server status to three-party game launcher

* Set the maximum number of player on the server through the config.json

* modify the logical order and show the number of maxplayer to API /status/server

* Now even players who have token already cannot bypass the maxPlayer check
This commit is contained in:
ButterCookies
2022-05-20 20:47:47 +08:00
committed by GitHub
parent 2a467a48dc
commit 9125bacfce
8 changed files with 128 additions and 77 deletions

View File

@@ -110,6 +110,7 @@ public class ConfigContainer {
public static class Account {
public boolean autoCreate = false;
public String[] defaultPermissions = {};
public int maxPlayer = -1;
}
/* Server options. */