Permalink
Browse files

Move StringMatcher to before other things

  • Loading branch information...
me4502 committed Dec 29, 2018
1 parent 405b210 commit b48e14550883cd16b5f9aa1cc5664c34c1f8db51
@@ -28,7 +28,6 @@
import com.sk89q.worldedit.world.World;
import com.sk89q.worldguard.LocalPlayer;
import com.sk89q.worldguard.WorldGuard;
import com.sk89q.worldguard.commands.CommandUtils;
import com.sk89q.worldguard.internal.platform.StringMatcher;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
@@ -102,13 +102,13 @@ public void broadcastNotification(String message) {

@Override
public void load() {
stringMatcher = new BukkitStringMatcher();
sessionManager = new BukkitSessionManager();
configuration = new BukkitConfigurationManager(WorldGuardPlugin.inst());
configuration.load();
regionContainer = new BukkitRegionContainer(WorldGuardPlugin.inst());
regionContainer.initialize();
debugHandler = new BukkitDebugHandler(WorldGuardPlugin.inst());
stringMatcher = new BukkitStringMatcher();
}

@Override
@@ -24,7 +24,6 @@
import com.sk89q.worldedit.world.World;
import com.sk89q.worldguard.LocalPlayer;
import com.sk89q.worldguard.WorldGuard;
import com.sk89q.worldguard.bukkit.BukkitWorldConfiguration;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
import com.sk89q.worldguard.config.ConfigurationManager;
import com.sk89q.worldguard.config.WorldConfiguration;
@@ -86,7 +85,7 @@ protected WorldConfiguration getWorldConfig(World world) {
* Get the world configuration given a player.
*
* @param player The player to get the wold from
* @return The {@link BukkitWorldConfiguration} for the player's world
* @return The {@link WorldConfiguration} for the player's world
*/
protected WorldConfiguration getWorldConfig(LocalPlayer player) {
return getWorldConfig((World) player.getExtent());

0 comments on commit b48e145

Please sign in to comment.