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'
|
group 'ru.nanit'
|
||||||
version '1.3.4'
|
version '1.4'
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
|
@ -92,22 +92,16 @@ public final class LimboServer {
|
|||||||
Logger.setLevel(config.getDebugLevel());
|
Logger.setLevel(config.getDebugLevel());
|
||||||
|
|
||||||
listenForStop();
|
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() {
|
private void listenForStop() {
|
||||||
Scanner scanner = new Scanner(System.in);
|
Scanner scanner = new Scanner(System.in);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
String line = scanner.nextLine();
|
String line = scanner.nextLine();
|
||||||
|
|
||||||
//Ikr, yikes...
|
if (line.startsWith("stop"))
|
||||||
if (line.startsWith("stop")) System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user