Rearrange order of listeners in attempt to fix errors on startup.

This commit is contained in:
GJ 2013-01-23 18:53:39 -05:00
parent 0a9e1ba42e
commit a968019799

View File

@ -93,9 +93,9 @@ public class mcMMO extends JavaPlugin {
private final PlayerListener playerListener = new PlayerListener(this); private final PlayerListener playerListener = new PlayerListener(this);
private final BlockListener blockListener = new BlockListener(this); private final BlockListener blockListener = new BlockListener(this);
private final EntityListener entityListener = new EntityListener(this); private final EntityListener entityListener = new EntityListener(this);
private final InventoryListener inventoryListener = new InventoryListener(this);
private final WorldListener worldListener = new WorldListener(); private final WorldListener worldListener = new WorldListener();
private final HardcoreListener hardcoreListener = new HardcoreListener(); private final HardcoreListener hardcoreListener = new HardcoreListener();
private final InventoryListener inventoryListener = new InventoryListener(this);
private HashMap<String, String> aliasMap = new HashMap<String, String>(); //Alias - Command private HashMap<String, String> aliasMap = new HashMap<String, String>(); //Alias - Command
private HashMap<Integer, String> tntTracker = new HashMap<Integer, String>(); private HashMap<Integer, String> tntTracker = new HashMap<Integer, String>();
@ -168,8 +168,9 @@ public class mcMMO extends JavaPlugin {
pluginManager.registerEvents(playerListener, this); pluginManager.registerEvents(playerListener, this);
pluginManager.registerEvents(blockListener, this); pluginManager.registerEvents(blockListener, this);
pluginManager.registerEvents(entityListener, this); pluginManager.registerEvents(entityListener, this);
pluginManager.registerEvents(worldListener, this);
pluginManager.registerEvents(inventoryListener, this); pluginManager.registerEvents(inventoryListener, this);
pluginManager.registerEvents(worldListener, this);
if (configInstance.getHardcoreEnabled()) { if (configInstance.getHardcoreEnabled()) {
pluginManager.registerEvents(hardcoreListener, this); pluginManager.registerEvents(hardcoreListener, this);