Update readmes, make slight code change

This commit is contained in:
Maxwell Jeffress
2024-11-23 19:38:19 +11:00
parent d839652916
commit f69a3fb599
3 changed files with 21 additions and 9 deletions

View File

@@ -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")
}
}