mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 10:41:41 +01:00
Ctrl+C saves world before stopping
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
6f8ecc04e5
commit
44f7dca0de
1 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
|
||||
package org.bukkit.craftbukkit.util;
|
||||
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
|
||||
public class ServerShutdownThread extends Thread {
|
||||
private final MinecraftServer server;
|
||||
|
||||
public ServerShutdownThread(MinecraftServer server) {
|
||||
this.server = server;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
server.g();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue