mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-03 01:19:42 +01:00
Re-ordered plugin enable process.
This commit is contained in:
parent
4f3198b1bd
commit
b62ada53c3
@ -133,13 +133,6 @@ public void onEnable() {
|
|||||||
// Load permissions
|
// Load permissions
|
||||||
(new PermissionsResolverServerListener(perms)).register(this);
|
(new PermissionsResolverServerListener(perms)).register(this);
|
||||||
|
|
||||||
// Register events
|
|
||||||
(new WorldGuardPlayerListener(this)).registerEvents();
|
|
||||||
(new WorldGuardBlockListener(this)).registerEvents();
|
|
||||||
(new WorldGuardEntityListener(this)).registerEvents();
|
|
||||||
(new WorldGuardWeatherListener(this)).registerEvents();
|
|
||||||
(new WorldGuardWorldListener(this)).registerEvents();
|
|
||||||
|
|
||||||
flagStateManager = new FlagStateManager(this);
|
flagStateManager = new FlagStateManager(this);
|
||||||
|
|
||||||
if (configuration.useRegionsScheduler) {
|
if (configuration.useRegionsScheduler) {
|
||||||
@ -157,6 +150,13 @@ public void onEnable() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Register events
|
||||||
|
(new WorldGuardPlayerListener(this)).registerEvents();
|
||||||
|
(new WorldGuardBlockListener(this)).registerEvents();
|
||||||
|
(new WorldGuardEntityListener(this)).registerEvents();
|
||||||
|
(new WorldGuardWeatherListener(this)).registerEvents();
|
||||||
|
(new WorldGuardWorldListener(this)).registerEvents();
|
||||||
|
|
||||||
logger.info("WorldGuard " + this.getDescription().getVersion() + " enabled.");
|
logger.info("WorldGuard " + this.getDescription().getVersion() + " enabled.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user