mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-04 23:07:44 +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.
|
// 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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user