mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-12 20:50:13 +02:00
Changed version string. Removed unused javadoc
This commit is contained in:
parent
ad644b956a
commit
f81a235982
@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
group 'ru.nanit'
|
||||
version '1.3.4'
|
||||
version '1.4'
|
||||
|
||||
compileJava {
|
||||
options.encoding = "UTF-8"
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user