mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 02:27:42 +01:00
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:
parent
40c1d93f02
commit
0dc65d083f
@ -867,11 +867,11 @@ public void setParent(CommandContext args, CommandSender sender) throws CommandE
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (parent.isOwner(localPlayer)) {
|
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)) {
|
} else if (parent.isMember(localPlayer)) {
|
||||||
plugin.checkPermission(sender, "worldguard.region.setparent.member." + id.toLowerCase());
|
plugin.checkPermission(sender, "worldguard.region.setparent.member." + parentId.toLowerCase());
|
||||||
} else {
|
} else {
|
||||||
plugin.checkPermission(sender, "worldguard.region.setparent." + id.toLowerCase());
|
plugin.checkPermission(sender, "worldguard.region.setparent." + parentId.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user