Added help command to server CLI

This commit is contained in:
Collin Smith 2020-06-28 18:42:51 -07:00
parent 8feff49a8a
commit 60257b48de

View File

@ -316,6 +316,8 @@ public class Main extends ApplicationAdapter {
String in = reader.readLine();
if (in.equalsIgnoreCase("exit")) {
Gdx.app.exit();
} else if (in.equalsIgnoreCase("help") || in.equalsIgnoreCase("?")) {
Gdx.app.log(TAG, "commands: address, clients, seed, exit");
} else if (in.equalsIgnoreCase("address")) {
Gdx.app.log(TAG, "address: " + server.future().channel().localAddress());
} else if (in.equalsIgnoreCase("clients")) {