Update readmes, make slight code change
This commit is contained in:
@@ -387,9 +387,17 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
.start(7070)
|
||||
println("Type a command for the server")
|
||||
while (1 == 1) {
|
||||
println(handleServerCommand(readln()))
|
||||
try {
|
||||
if (args[0] == "-i") {
|
||||
println("Type a command for the server")
|
||||
while (1 == 1) {
|
||||
println(handleServerCommand(readln()))
|
||||
}
|
||||
} else {
|
||||
println("Interactive mode disabled, add -i to enable")
|
||||
}
|
||||
} catch (error: Exception) {
|
||||
println("Interactive mode disabled, add -i to enable")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user