mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-02 13:57:49 +01:00
Correct listener registration order.
This commit is contained in:
parent
280d352a2f
commit
553caeaf87
@ -232,6 +232,7 @@ public class NoCheatPlus extends JavaPlugin implements Listener {
|
||||
// List the events listeners and register.
|
||||
Bukkit.getPluginManager().registerEvents(this, this);
|
||||
for (final Object obj : new Object[]{
|
||||
NCPExemptionManager.getListener(),
|
||||
dataMan,
|
||||
new BlockBreakListener(),
|
||||
new BlockInteractListener(),
|
||||
@ -242,7 +243,6 @@ public class NoCheatPlus extends JavaPlugin implements Listener {
|
||||
new InventoryListener(),
|
||||
new MovingListener(),
|
||||
new Workarounds(),
|
||||
NCPExemptionManager.getListener(),
|
||||
}){
|
||||
addComponent(obj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user