use of ru.tehkode.permissions.PermissionUser in project AuthMeReloaded by AuthMe.
the class PermissionsExHandler method removeFromGroup.
@Override
public boolean removeFromGroup(OfflinePlayer player, UserGroup group) {
PermissionUser user = permissionManager.getUser(player.getName());
user.removeGroup(group.getGroupName());
return true;
}
use of ru.tehkode.permissions.PermissionUser in project AuthMeReloaded by AuthMe.
the class PermissionsExHandler method setGroup.
@Override
public boolean setGroup(OfflinePlayer player, UserGroup group) {
List<String> groups = new ArrayList<>();
groups.add(group.getGroupName());
PermissionUser user = permissionManager.getUser(player.getName());
user.setParentsIdentifier(groups);
return true;
}
Aggregations