Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
5ddf67d9
Commit
5ddf67d9
authored
May 17, 2022
by
muhammadeko
Committed by
Melledy
May 16, 2022
Browse files
add config to enable/disable console
parent
3e2ff211
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Grasscutter.java
View file @
5ddf67d9
...
...
@@ -304,7 +304,7 @@ public final class Grasscutter {
getLogger
().
info
(
translate
(
"messages.status.done"
));
String
input
=
null
;
boolean
isLastInterrupted
=
false
;
while
(
tru
e
)
{
while
(
config
.
server
.
game
.
enableConsol
e
)
{
try
{
input
=
consoleLineReader
.
readLine
(
"> "
);
}
catch
(
UserInterruptException
e
)
{
...
...
src/main/java/emu/grasscutter/utils/ConfigContainer.java
View file @
5ddf67d9
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment