Commit 5ddf67d9 authored by muhammadeko's avatar muhammadeko Committed by Melledy
Browse files

add config to enable/disable console

parent 3e2ff211
...@@ -304,7 +304,7 @@ public final class Grasscutter { ...@@ -304,7 +304,7 @@ public final class Grasscutter {
getLogger().info(translate("messages.status.done")); getLogger().info(translate("messages.status.done"));
String input = null; String input = null;
boolean isLastInterrupted = false; boolean isLastInterrupted = false;
while (true) { while (config.server.game.enableConsole) {
try { try {
input = consoleLineReader.readLine("> "); input = consoleLineReader.readLine("> ");
} catch (UserInterruptException e) { } catch (UserInterruptException e) {
......
...@@ -136,7 +136,7 @@ public class ConfigContainer { ...@@ -136,7 +136,7 @@ public class ConfigContainer {
public int bindPort = 22102; public int bindPort = 22102;
/* This is the port used in the default region. */ /* This is the port used in the default region. */
public int accessPort = 0; public int accessPort = 0;
public boolean enableConsole = true;
public GameOptions gameOptions = new GameOptions(); public GameOptions gameOptions = new GameOptions();
public JoinOptions joinOptions = new JoinOptions(); public JoinOptions joinOptions = new JoinOptions();
public ConsoleAccount serverAccount = new ConsoleAccount(); public ConsoleAccount serverAccount = new ConsoleAccount();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment