diff options
author | Forsaken <darkmaster87@gmx.de> | 2011-02-02 04:37:07 +0800 |
---|---|---|
committer | Dinner Bone <dinnerbone@dinnerbone.com> | 2011-02-02 06:12:35 +0800 |
commit | d228e0c311a1311addf73a07a2c8ac1cf7c3b97b (patch) | |
tree | b2ffba77817dc3f7492e38b8a3cbc8f6e8707256 /src/main/java | |
parent | 661f209b7edf7de7d55d2fdafcfb42a1677fa4a9 (diff) | |
download | craftbukkit-d228e0c311a1311addf73a07a2c8ac1cf7c3b97b.tar craftbukkit-d228e0c311a1311addf73a07a2c8ac1cf7c3b97b.tar.gz craftbukkit-d228e0c311a1311addf73a07a2c8ac1cf7c3b97b.tar.lz craftbukkit-d228e0c311a1311addf73a07a2c8ac1cf7c3b97b.tar.xz craftbukkit-d228e0c311a1311addf73a07a2c8ac1cf7c3b97b.zip |
Fixed the onDisable() event of plugins again after it was overwritten some days ago.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/MinecraftServer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index fca5b9d4..7ef0a446 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -163,6 +163,11 @@ public class MinecraftServer implements ICommandListener, Runnable { private void g() { a.info("Stopping server"); + // CraftBukkit + if(server != null) { + server.disablePlugins(); + } + if (this.f != null) { this.f.d(); } |