Add Geyser reload command and commands for platforms (Closes #141)

This commit is contained in:
RednedEpic 2020-03-17 11:43:09 -05:00
parent 105ce2b3b5
commit 21dc2e8362
21 changed files with 693 additions and 76 deletions

View file

@ -40,6 +40,8 @@ public class GeyserBootstrap implements IGeyserBootstrap {
private GeyserConfiguration geyserConfig;
private GeyserLogger geyserLogger;
private GeyserConnector connector;
public static void main(String[] args) {
new GeyserBootstrap().onEnable();
}
@ -56,13 +58,13 @@ public class GeyserBootstrap implements IGeyserBootstrap {
System.exit(0);
}
GeyserConnector.start(PlatformType.STANDALONE, this);
connector = GeyserConnector.start(PlatformType.STANDALONE, this);
geyserLogger.start();
}
@Override
public void onDisable() {
GeyserConnector.stop();
connector.shutdown();
System.exit(0);
}