add config to enable/disable console

This commit is contained in:
muhammadeko 2022-05-17 07:29:23 +07:00 committed by Melledy
parent 3e2ff211ec
commit 5ddf67d9e5
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ public final class Grasscutter {
getLogger().info(translate("messages.status.done"));
String input = null;
boolean isLastInterrupted = false;
while (true) {
while (config.server.game.enableConsole) {
try {
input = consoleLineReader.readLine("> ");
} catch (UserInterruptException e) {

View File

@ -136,7 +136,7 @@ public class ConfigContainer {
public int bindPort = 22102;
/* This is the port used in the default region. */
public int accessPort = 0;
public boolean enableConsole = true;
public GameOptions gameOptions = new GameOptions();
public JoinOptions joinOptions = new JoinOptions();
public ConsoleAccount serverAccount = new ConsoleAccount();