forked from SteamWar/SteamWar
Hotfix Persistent
This commit is contained in:
@@ -81,16 +81,16 @@ public class Persistent {
|
||||
this.proxy = proxy;
|
||||
this.logger = logger;
|
||||
this.directory = dataDirectory;
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onEnable(ProxyInitializeEvent event) {
|
||||
proxy.getScheduler().buildTask(instance, () -> {
|
||||
if (!restartQueued) return;
|
||||
if (!proxy.getAllPlayers().isEmpty()) return;
|
||||
proxy.shutdown();
|
||||
}).repeat(10, TimeUnit.SECONDS).schedule();
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onEnable(ProxyInitializeEvent event) {
|
||||
proxy.getCommandManager().register(
|
||||
new BrigadierCommand(
|
||||
BrigadierCommand.literalArgumentBuilder("softreload")
|
||||
|
||||
Reference in New Issue
Block a user