Made /region setparent check worldguard.region.setparent.own/member.<parent> instead of worldguard.region.setparent.own/member.<child>.

Same with worldguard.region.setparent.<id>
This commit is contained in:
TomyLobo 2012-03-12 15:08:35 +01:00
parent 40c1d93f02
commit 0dc65d083f

View File

@ -867,11 +867,11 @@ public void setParent(CommandContext args, CommandSender sender) throws CommandE
}
if (parent.isOwner(localPlayer)) {
plugin.checkPermission(sender, "worldguard.region.setparent.own." + id.toLowerCase());
plugin.checkPermission(sender, "worldguard.region.setparent.own." + parentId.toLowerCase());
} else if (parent.isMember(localPlayer)) {
plugin.checkPermission(sender, "worldguard.region.setparent.member." + id.toLowerCase());
plugin.checkPermission(sender, "worldguard.region.setparent.member." + parentId.toLowerCase());
} else {
plugin.checkPermission(sender, "worldguard.region.setparent." + id.toLowerCase());
plugin.checkPermission(sender, "worldguard.region.setparent." + parentId.toLowerCase());
}
try {