mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-25 10:07:35 +01:00
Fix #439
This commit is contained in:
parent
7de4efc025
commit
dc65a4bd39
@ -555,6 +555,10 @@ public class PermissionsManager implements PermissionsService {
|
|||||||
switch (this.permsType) {
|
switch (this.permsType) {
|
||||||
case PERMISSIONS_EX:
|
case PERMISSIONS_EX:
|
||||||
// Permissions Ex
|
// Permissions Ex
|
||||||
|
if(!PermissionsEx.getPermissionManager().getGroupNames().contains(groupName)) {
|
||||||
|
ConsoleLogger.showError("The plugin tried to set " + player + "'s group to " + groupName + ", but it doesn't exist!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
PermissionUser user = PermissionsEx.getUser(player);
|
PermissionUser user = PermissionsEx.getUser(player);
|
||||||
user.addGroup(groupName);
|
user.addGroup(groupName);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user