forked from GeyserMC/Geyser
Add Geyser reload command and commands for platforms (Closes #141)
This commit is contained in:
parent
105ce2b3b5
commit
21dc2e8362
21 changed files with 693 additions and 76 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue