mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-23 19:16:31 +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) {
|
if (group == null || user == null) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
user.addGroup(group);
|
user.addGroup(groupName, worldName);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean playerRemoveGroup(String worldName, String playerName, String groupName) {
|
public boolean playerRemoveGroup(String worldName, String playerName, String groupName) {
|
||||||
PermissionsEx.getPermissionManager().getUser(playerName).removeGroup(groupName);
|
PermissionsEx.getPermissionManager().getUser(playerName).removeGroup(groupName, worldName);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user