From 44c4e5816f1a7a2388497f322cefc7da040ac19e Mon Sep 17 00:00:00 2001 From: wizjany Date: Tue, 2 Apr 2019 17:18:44 -0400 Subject: [PATCH] Move log message about loading regions to proper location. --- .../sk89q/worldguard/protection/regions/RegionContainer.java | 1 + .../main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/worldguard-core/src/main/java/com/sk89q/worldguard/protection/regions/RegionContainer.java b/worldguard-core/src/main/java/com/sk89q/worldguard/protection/regions/RegionContainer.java index f566599f..42db1850 100644 --- a/worldguard-core/src/main/java/com/sk89q/worldguard/protection/regions/RegionContainer.java +++ b/worldguard-core/src/main/java/com/sk89q/worldguard/protection/regions/RegionContainer.java @@ -169,6 +169,7 @@ public void migrate(Migration migration) throws MigrationException { * Try loading the region managers for all currently loaded worlds. */ protected void loadWorlds() { + WorldGuard.logger.info("Loading region data..."); synchronized (lock) { for (World world : WorldEdit.getInstance().getPlatformManager().queryCapability(Capability.GAME_HOOKS).getWorlds()) { load(world); diff --git a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java index 1e54789e..b8b7974c 100644 --- a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java +++ b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java @@ -154,8 +154,6 @@ public void onEnable() { } }, 0L); - WorldGuard.logger.info("Loading region data..."); - getServer().getScheduler().scheduleSyncRepeatingTask(this, sessionManager, BukkitSessionManager.RUN_DELAY, BukkitSessionManager.RUN_DELAY); // Register events