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() {

View file

@ -22,7 +22,7 @@ command.worldguard.available_flags: Verf
command.worldguard.region_not_found: Konnte keine Region mit dieser ID finden command.worldguard.region_not_found: Konnte keine Region mit dieser ID finden
command.worldguard.world_not_found: Konnte keine Welt mit diesem namen finden command.worldguard.world_not_found: Konnte keine Welt mit diesem namen finden
command.worldguard.flag_set: Das Attribut {0} wurde gesetzt command.worldguard.flag_set: Das Attribut {0} wurde gesetzt
command.worldguard.additional_flags: Zusätzliche Attribute: command.worldguard.additional_flags: Zusätzliche Attribute:
command.blockstate: LimitedCreative-BlockStatus-Kommando: Ändern der BlockStatus Datenbank um Beute aus den ausgewählten Blöcken zu verhindern (benötigt WorldEdit) command.blockstate: LimitedCreative-BlockStatus-Kommando: Ändern der BlockStatus Datenbank um Beute aus den ausgewählten Blöcken zu verhindern (benötigt WorldEdit)
command.blockstate.requires_worldedit: Dieser Befehl benötigt WorldEdit command.blockstate.requires_worldedit: Dieser Befehl benötigt WorldEdit