Expose MinecraftServer#isRunning
This allows for plugins to detect if the server is actually turning off in onDisable rather than just plugins reloading.
This commit is contained in:
@@ -2960,5 +2960,10 @@ public final class CraftServer implements Server {
|
|||||||
public int getCurrentTick() {
|
public int getCurrentTick() {
|
||||||
return net.minecraft.server.MinecraftServer.currentTick;
|
return net.minecraft.server.MinecraftServer.currentTick;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isStopping() {
|
||||||
|
return net.minecraft.server.MinecraftServer.getServer().hasStopped();
|
||||||
|
}
|
||||||
// Paper end
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user