mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 09:02:09 -07:00
onDisable on stop - stephank
This commit is contained in:
@@ -160,6 +160,10 @@ public class MinecraftServer implements ICommandListener, Runnable {
|
||||
|
||||
private void g() {
|
||||
a.info("Stopping server");
|
||||
if(server != null) {
|
||||
server.disablePlugins();
|
||||
}
|
||||
|
||||
if (f != null) {
|
||||
f.d();
|
||||
}
|
||||
|
@@ -52,6 +52,10 @@ public final class CraftServer implements Server {
|
||||
}
|
||||
}
|
||||
|
||||
public void disablePlugins() {
|
||||
pluginManager.disablePlugins();
|
||||
}
|
||||
|
||||
private void loadPlugin(Plugin plugin) {
|
||||
List<Command> pluginCommands = PluginCommandYamlParser.parse(plugin);
|
||||
if (!pluginCommands.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user