Fixed plugins being loaded before world.

This commit is contained in:
FrozenCow 2011-01-07 02:33:59 +08:00 committed by Dinner Bone
parent 687ae0533c
commit 6a786c1c21
2 changed files with 5 additions and 1 deletions

View File

@ -136,6 +136,8 @@ implements ICommandListener, Runnable {
private void e() {
i = null;
j = 0;
server.loadPlugins();
}
private void f() {

View File

@ -26,7 +26,9 @@ public final class CraftServer implements Server {
this.server = server;
pluginManager.RegisterInterface(JavaPluginLoader.class);
}
public void loadPlugins() {
File pluginFolder = (File)console.options.valueOf("plugins");
if (pluginFolder.exists()) {