Fix the console spewing many many errors. Sorry.

This commit is contained in:
Eric Stokes 2011-08-24 20:01:50 -06:00
parent 7a38806134
commit 319567eb67
2 changed files with 5 additions and 2 deletions

View File

@ -89,6 +89,8 @@ public class MultiverseCore extends JavaPlugin implements LoggablePlugin {
// Configurations // Configurations
private Configuration configMV = null; private Configuration configMV = null;
private WorldManager worldManager = new WorldManager(this);
// Setup the block/player/entity listener. // Setup the block/player/entity listener.
private MVPlayerListener playerListener = new MVPlayerListener(this); private MVPlayerListener playerListener = new MVPlayerListener(this);
@ -108,7 +110,7 @@ public class MultiverseCore extends JavaPlugin implements LoggablePlugin {
protected int pluginCount; protected int pluginCount;
private DestinationFactory destFactory; private DestinationFactory destFactory;
private SpoutInterface spoutInterface = null; private SpoutInterface spoutInterface = null;
private WorldManager worldManager;
@Override @Override
public void onLoad() { public void onLoad() {
@ -145,7 +147,7 @@ public class MultiverseCore extends JavaPlugin implements LoggablePlugin {
this.registerCommands(); this.registerCommands();
this.playerSessions = new HashMap<String, MVPlayerSession>(); this.playerSessions = new HashMap<String, MVPlayerSession>();
this.worldManager = new WorldManager(this);
// Start the Update Checker // Start the Update Checker
// updateCheck = new UpdateChecker(this.getDescription().getName(), this.getDescription().getVersion()); // updateCheck = new UpdateChecker(this.getDescription().getName(), this.getDescription().getVersion());

View File

@ -24,6 +24,7 @@ public class WorldManager {
private Configuration configWorlds = null; private Configuration configWorlds = null;
public WorldManager(MultiverseCore core) { public WorldManager(MultiverseCore core) {
this.plugin = core; this.plugin = core;
this.worlds = new HashMap<String, MVWorld>(); this.worlds = new HashMap<String, MVWorld>();
this.worldPurger = new PurgeWorlds(this.plugin); this.worldPurger = new PurgeWorlds(this.plugin);