From a622d4e405d87b4d59c31885f32563de39777842 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Tue, 30 Jul 2013 21:34:22 +0200 Subject: [PATCH] WorldGaurd Typo-Fix (/lcr command) --- .../minecraft/limitedcreative/regions/RegionsCommand.java | 2 +- .../limitedcreative/regions/WorldGuardIntegration.java | 1 + .../regions/worldguard/CustomRegionManager.java | 3 ++- src/main/resources/lang/messages_de.properties | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/RegionsCommand.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/RegionsCommand.java index 708591b..ff98092 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/RegionsCommand.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/RegionsCommand.java @@ -47,7 +47,7 @@ public class RegionsCommand extends BukkitCommand implements IHelpDescribed { public RegionsCommand(ModRegions mod) { this(); this.mod = mod; - this.wg = (WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin("WorldGaurd"); + this.wg = (WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin(WorldGuardIntegration.PLUGIN_NAME); } @Override diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/WorldGuardIntegration.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/WorldGuardIntegration.java index 779ed3f..d0922c2 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/WorldGuardIntegration.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/WorldGuardIntegration.java @@ -9,6 +9,7 @@ import de.jaschastarke.minecraft.limitedcreative.regions.worldguard.ApplicableRe import de.jaschastarke.minecraft.limitedcreative.regions.worldguard.FlagList; public class WorldGuardIntegration implements IWorldGuardIntegration { + public static final String PLUGIN_NAME = "WorldGuard"; private ModRegions mod; public WorldGuardIntegration(ModRegions mod) { diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/worldguard/CustomRegionManager.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/worldguard/CustomRegionManager.java index 5e5612e..0eabda2 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/worldguard/CustomRegionManager.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/regions/worldguard/CustomRegionManager.java @@ -40,6 +40,7 @@ import com.sk89q.worldguard.protection.managers.RegionManager; import com.sk89q.worldguard.protection.regions.ProtectedRegion; import de.jaschastarke.minecraft.limitedcreative.ModRegions; +import de.jaschastarke.minecraft.limitedcreative.regions.WorldGuardIntegration; import de.jaschastarke.utils.StringUtil; public class CustomRegionManager { @@ -153,7 +154,7 @@ public class CustomRegionManager { } private WorldGuardPlugin getWorldGuard() { - return ((WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin("WorldGuard")); + return ((WorldGuardPlugin) mod.getPlugin().getServer().getPluginManager().getPlugin(WorldGuardIntegration.PLUGIN_NAME)); } public GlobalRegionManager getWGGlobalManager() { diff --git a/src/main/resources/lang/messages_de.properties b/src/main/resources/lang/messages_de.properties index 215f23f..6b94ae9 100644 --- a/src/main/resources/lang/messages_de.properties +++ b/src/main/resources/lang/messages_de.properties @@ -22,7 +22,7 @@ command.worldguard.available_flags: Verf 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.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.requires_worldedit: Dieser Befehl benötigt WorldEdit