Add World support to PEX addgroup/removegroup for world-specific groups.

Resolves issue #462
This commit is contained in:
Nick Minkler 2013-12-28 16:51:21 -08:00
parent 5124e559b7
commit 0f1b2dad3f

View File

@ -121,14 +121,14 @@ public class Permission_PermissionsEx extends Permission {
if (group == null || user == null) {
return false;
} else {
user.addGroup(group);
user.addGroup(groupName, worldName);
return true;
}
}
@Override
public boolean playerRemoveGroup(String worldName, String playerName, String groupName) {
PermissionsEx.getPermissionManager().getUser(playerName).removeGroup(groupName);
PermissionsEx.getPermissionManager().getUser(playerName).removeGroup(groupName, worldName);
return true;
}