mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-01 18:36:49 +00:00
add config to enable/disable console
This commit is contained in:
parent
3e2ff211ec
commit
5ddf67d9e5
@ -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 {
|
|||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user