mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-13 06:06:28 +01:00
Add World support to PEX addgroup/removegroup for world-specific groups.
Resolves issue #462
This commit is contained in:
parent
5124e559b7
commit
0f1b2dad3f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user