Skip to content
Browse files

has to be done BEFORE registering the commands.

  • Loading branch information...
1 parent dd8ea7b commit e0cbf3049ebc0166e7b3b4cafb734c2b85a7a614 @Belphemur Belphemur committed Apr 14, 2012
Showing with 13 additions and 12 deletions.
  1. +13 −12 src/main/java/be/Balor/bukkit/AdminCmd/AdminCmd.java
View
25 src/main/java/be/Balor/bukkit/AdminCmd/AdminCmd.java
@@ -194,18 +194,6 @@ public void onEnable() {
pm.registerEvents(new ACPluginListener(), this);
worker = ACHelper.getInstance();
worker.setCoreInstance(this);
- super.onEnable();
- TerminalCommandManager.getInstance().setPerm(this);
- worker.loadInfos();
- permissionLinker.registerAllPermParent();
- pm.registerEvents(new ACBlockListener(), this);
- pm.registerEvents(new ACEntityListener(), this);
- pm.registerEvents(new ACPlayerListener(), this);
- pm.registerEvents(new ACWeatherListener(), this);
- if (ConfigEnum.COLSIGN.getBoolean())
- pm.registerEvents(new ACColorSignListener(), this);
- if (ConfigEnum.RESET_POWERS.getBoolean())
- pm.registerEvents(new ACResetPowerListener(), this);
try {
// create a new metrics object
final Metrics metrics = new Metrics();
@@ -278,6 +266,19 @@ public void run() {
} catch (final IOException e) {
DebugLog.INSTANCE.log(Level.SEVERE, "Stats loggin problem", e);
}
+ super.onEnable();
+ TerminalCommandManager.getInstance().setPerm(this);
+ worker.loadInfos();
+ permissionLinker.registerAllPermParent();
+ pm.registerEvents(new ACBlockListener(), this);
+ pm.registerEvents(new ACEntityListener(), this);
+ pm.registerEvents(new ACPlayerListener(), this);
+ pm.registerEvents(new ACWeatherListener(), this);
+ if (ConfigEnum.COLSIGN.getBoolean())
+ pm.registerEvents(new ACColorSignListener(), this);
+ if (ConfigEnum.RESET_POWERS.getBoolean())
+ pm.registerEvents(new ACResetPowerListener(), this);
+
}
@Override

0 comments on commit e0cbf30

Please sign in to comment.
Something went wrong with that request. Please try again.