summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-28 14:18:49 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-28 14:18:49 +0000
commitb6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc (patch)
treefe82add58b2b925f808183661998b3d51d48fb14 /src/main
parentc2d9af58fec008b2651dd7564421f0c65e549b7f (diff)
downloadcraftbukkit-b6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc.tar
craftbukkit-b6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc.tar.gz
craftbukkit-b6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc.tar.lz
craftbukkit-b6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc.tar.xz
craftbukkit-b6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc.zip
server.reload() now reloads plugins
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 8368d377..250e0ff2 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -175,5 +175,9 @@ public final class CraftServer implements Server {
console.e.k = monsters ? 1 : 0;
console.e.a(monsters, animals);
+
+ pluginManager.clearPlugins();
+ commandMap.clearCommands();
+ loadPlugins();
}
}