summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/MinecraftServer.java
diff options
context:
space:
mode:
authorTaylor Kelly <tkelly910@gmail.com>2011-01-27 16:15:41 -0500
committerTaylor Kelly <tkelly910@gmail.com>2011-01-27 16:15:41 -0500
commitcab61f169e16e5871f5b2c6bf7d729b221fe37f7 (patch)
tree011b51691ae8e79d8bf9185fec8e52aec26afd36 /src/main/java/net/minecraft/server/MinecraftServer.java
parent105a14d6d13a61881a20cd9e5baa4b7b8e4dd15f (diff)
downloadcraftbukkit-cab61f169e16e5871f5b2c6bf7d729b221fe37f7.tar
craftbukkit-cab61f169e16e5871f5b2c6bf7d729b221fe37f7.tar.gz
craftbukkit-cab61f169e16e5871f5b2c6bf7d729b221fe37f7.tar.lz
craftbukkit-cab61f169e16e5871f5b2c6bf7d729b221fe37f7.tar.xz
craftbukkit-cab61f169e16e5871f5b2c6bf7d729b221fe37f7.zip
onDisable on stop - stephank
Diffstat (limited to 'src/main/java/net/minecraft/server/MinecraftServer.java')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index 1011b9a7..56755c17 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -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();
}