WorldGaurd Typo-Fix (/lcr command)

This commit is contained in:
Jascha Starke 2013-07-30 21:34:22 +02:00
parent 93ee72e2c6
commit a622d4e405
4 changed files with 5 additions and 3 deletions

View file

@ -47,7 +47,7 @@ public class RegionsCommand extends BukkitCommand implements IHelpDescribed {
public RegionsCommand(ModRegions mod) { public RegionsCommand(ModRegions mod) {
this(); this();
this.mod = mod; this.mod = mod;
this.wg = (WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin("WorldGaurd"); this.wg = (WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin(WorldGuardIntegration.PLUGIN_NAME);
} }
@Override @Override

View file

@ -9,6 +9,7 @@ import de.jaschastarke.minecraft.limitedcreative.regions.worldguard.ApplicableRe
import de.jaschastarke.minecraft.limitedcreative.regions.worldguard.FlagList; import de.jaschastarke.minecraft.limitedcreative.regions.worldguard.FlagList;
public class WorldGuardIntegration implements IWorldGuardIntegration { public class WorldGuardIntegration implements IWorldGuardIntegration {
public static final String PLUGIN_NAME = "WorldGuard";
private ModRegions mod; private ModRegions mod;
public WorldGuardIntegration(ModRegions mod) { public WorldGuardIntegration(ModRegions mod) {

View file

@ -40,6 +40,7 @@ import com.sk89q.worldguard.protection.managers.RegionManager;
import com.sk89q.worldguard.protection.regions.ProtectedRegion; import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import de.jaschastarke.minecraft.limitedcreative.ModRegions; import de.jaschastarke.minecraft.limitedcreative.ModRegions;
import de.jaschastarke.minecraft.limitedcreative.regions.WorldGuardIntegration;
import de.jaschastarke.utils.StringUtil; import de.jaschastarke.utils.StringUtil;
public class CustomRegionManager { public class CustomRegionManager {
@ -153,7 +154,7 @@ public class CustomRegionManager {
} }
private WorldGuardPlugin getWorldGuard() { private WorldGuardPlugin getWorldGuard() {
return ((WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin("WorldGuard")); return ((WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin(WorldGuardIntegration.PLUGIN_NAME));
} }
public GlobalRegionManager getWGGlobalManager() { public GlobalRegionManager getWGGlobalManager() {