This commit is contained in:
Gabriele C 2016-05-05 19:16:08 +02:00
parent 7de4efc025
commit dc65a4bd39

View File

@ -555,6 +555,10 @@ public class PermissionsManager implements PermissionsService {
switch (this.permsType) {
case 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);
user.addGroup(groupName);
return true;