mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Rearrange order of listeners in attempt to fix errors on startup.
This commit is contained in:
parent
0a9e1ba42e
commit
a968019799
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user