From b6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Fri, 28 Jan 2011 14:18:49 +0000 Subject: [PATCH] server.reload() now reloads plugins --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 8368d377f7..250e0ff2e8 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(); } }