Added /regionmembership permission.

This commit is contained in:
sk89q 2011-01-24 02:38:18 -08:00
parent 65a0e5c188
commit bc774e2596

View File

@ -970,7 +970,7 @@ private boolean handleRegionCommand(Player player, String action, String[] args)
}
if (action.equalsIgnoreCase("addowner") || action.equalsIgnoreCase("addmember")) {
if (!hasPermission(player, "/regionclaim")) {
if (!hasPermission(player, "/regionclaim") && !hasPermission(player, "/regionmembership")) {
checkRegionPermission(player, "/regiondefine");
}
checkArgs(args, 2, -1, "/region add[member|owner] <id> [player1 [group1 [players/groups...]]]");
@ -1014,7 +1014,7 @@ private boolean handleRegionCommand(Player player, String action, String[] args)
}
if (action.equalsIgnoreCase("removeowner") || action.equalsIgnoreCase("removemember")) {
if (!hasPermission(player, "/regionclaim")) {
if (!hasPermission(player, "/regionclaim") && !hasPermission(player, "/regionmembership")) {
checkRegionPermission(player, "/regiondefine");
}
checkArgs(args, 2, -1, "/region removeowner <id> [owner1 [owner2 [owners...]]]");