WorldGaurd Typo-Fix (/lcr command)
This commit is contained in:
parent
93ee72e2c6
commit
a622d4e405
4 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue