Correct listener registration order.

This commit is contained in:
asofold 2012-10-01 03:25:39 +02:00
parent 280d352a2f
commit 553caeaf87

View File

@ -232,6 +232,7 @@ public class NoCheatPlus extends JavaPlugin implements Listener {
// List the events listeners and register. // List the events listeners and register.
Bukkit.getPluginManager().registerEvents(this, this); Bukkit.getPluginManager().registerEvents(this, this);
for (final Object obj : new Object[]{ for (final Object obj : new Object[]{
NCPExemptionManager.getListener(),
dataMan, dataMan,
new BlockBreakListener(), new BlockBreakListener(),
new BlockInteractListener(), new BlockInteractListener(),
@ -242,7 +243,6 @@ public class NoCheatPlus extends JavaPlugin implements Listener {
new InventoryListener(), new InventoryListener(),
new MovingListener(), new MovingListener(),
new Workarounds(), new Workarounds(),
NCPExemptionManager.getListener(),
}){ }){
addComponent(obj); addComponent(obj);
} }