Cleanup messages about region that does not exist in WorldGuard

This commit is contained in:
Thijs Wiefferink 2016-09-03 19:46:05 +02:00
parent 570f7b4055
commit 44c70c6a33
3 changed files with 6 additions and 6 deletions

View File

@ -101,7 +101,7 @@ public class AddCommand extends CommandAreaShop {
}
ProtectedRegion region = plugin.getWorldGuard().getRegionManager(world).getRegion(args[2]);
if(region == null) {
plugin.message(sender, "add-noRegion", args[2]);
plugin.message(sender, "cmd-noRegion", args[2]);
return;
}
regions.add(region);

View File

@ -105,7 +105,7 @@ public final class SignChangeListener implements Listener {
}
ProtectedRegion region = regionManager.getRegion(secondLine);
if(region == null) {
plugin.message(player, "cmd-notRegistered", secondLine);
plugin.message(player, "cmd-noRegion", secondLine);
return;
}
@ -219,7 +219,7 @@ public final class SignChangeListener implements Listener {
}
ProtectedRegion region = regionManager.getRegion(secondLine);
if(region == null) {
plugin.message(player, "add-noRegion", secondLine);
plugin.message(player, "cmd-noRegion", secondLine);
return;
}
FileManager.AddResult addResult = plugin.getFileManager().checkRegionAdd(player, region, GeneralRegion.RegionType.BUY);
@ -290,7 +290,7 @@ public final class SignChangeListener implements Listener {
// Get region by secondLine of the sign
region = plugin.getFileManager().getRegion(secondLine);
if(region == null) {
plugin.message(player, "add-noRegion", secondLine);
plugin.message(player, "cmd-noRegion", secondLine);
return;
}
} else {

View File

@ -58,7 +58,8 @@ cmd-weOnlyByPlayer: "Using a WorldEdit selection is only possible as a player, s
cmd-noSelection: "You don't have a WorldEdit selection."
cmd-noRegionsFound: "No regions registered in AreaShop are found in your selection."
cmd-noWERegionsFound: "No WorldEdit regions intersecting your selection are found."
cmd-notRegistered: "The specified region is not available in AreaShop: %0%."
cmd-notRegistered: "Region '%0%' is not available in AreaShop."
cmd-noRegion: "'%0%' is not a valid WorldGuard region."
cmd-noRegionsAtLocation: "No regions found at your location, specify the region as argument."
cmd-moreRegionsAtLocation: "More than one region has been found at your location, specify the region as argument."
cmd-automaticRegionOnlyByPlayer: "Automatically determining the region is only possible for players, specify the region as argument."
@ -404,7 +405,6 @@ add-failed: "Already registered: [gray]%0%."
add-blacklisted: "On the blacklist: [gray]%0%."
add-specifyWorld: "Specify the world of the region when using from console."
add-incorrectWorld: "World '%0%' not found, try again (case-sensitive)."
add-noRegion: "WorldGuard region '%0%' does not exist in this world."
add-noPermissionRegions: "No permission to add: [gray]%0%."
add-noPermissionOwnerMember: "[gray]You either are not a member/owner of these regions or have no permission to add your regions."