13
0
geforkt von Mirrors/Paper

Expose MinecraftServer#isRunning

This allows for plugins to detect if the server is actually turning off in onDisable rather than just plugins reloading.
Dieser Commit ist enthalten in:
JRoy 2020-04-10 21:24:12 -04:00
Ursprung db792f5e1d
Commit 167f0e69c8

Datei anzeigen

@ -2960,5 +2960,10 @@ public final class CraftServer implements Server {
public int getCurrentTick() {
return net.minecraft.server.MinecraftServer.currentTick;
}
@Override
public boolean isStopping() {
return net.minecraft.server.MinecraftServer.getServer().hasStopped();
}
// Paper end
}