Changed version string. Removed unused javadoc

This commit is contained in:
Nanit 2022-06-30 22:11:35 +03:00
parent ad644b956a
commit f81a235982
2 changed files with 4 additions and 10 deletions

View File

@ -4,7 +4,7 @@ plugins {
}
group 'ru.nanit'
version '1.3.4'
version '1.4'
compileJava {
options.encoding = "UTF-8"

View File

@ -92,22 +92,16 @@ public final class LimboServer {
Logger.setLevel(config.getDebugLevel());
listenForStop();
}
/**
* Listener for stop command, very basic implementation, but should do the thing.
* <p>
* Under normal circumstances, this method never returns.
* It may return when the server was stopped from an outside source.
*/
private void listenForStop() {
Scanner scanner = new Scanner(System.in);
while (true) {
String line = scanner.nextLine();
//Ikr, yikes...
if (line.startsWith("stop")) System.exit(0);
if (line.startsWith("stop"))
System.exit(0);
}
}