Search in sources :

Example 6 with PermissionProcessor

use of me.lucko.luckperms.common.processors.PermissionProcessor in project LuckPerms by lucko.

the class PermissionCalculator method setSourcePermissions.

/**
 * Defines the source permissions map which should be used when calculating
 * a result.
 *
 * @param sourceMap the source map
 */
public synchronized void setSourcePermissions(Map<String, Boolean> sourceMap) {
    for (PermissionProcessor processor : this.processors) {
        processor.setSource(sourceMap);
        processor.refresh();
    }
}
Also used : PermissionProcessor(me.lucko.luckperms.common.processors.PermissionProcessor)

Aggregations

PermissionProcessor (me.lucko.luckperms.common.processors.PermissionProcessor)6 ImmutableList (com.google.common.collect.ImmutableList)5 PermissionCalculator (me.lucko.luckperms.common.calculators.PermissionCalculator)5 MapProcessor (me.lucko.luckperms.common.processors.MapProcessor)5 WildcardProcessor (me.lucko.luckperms.common.processors.WildcardProcessor)5 RegexProcessor (me.lucko.luckperms.common.processors.RegexProcessor)4 SpongeWildcardProcessor (me.lucko.luckperms.sponge.processors.SpongeWildcardProcessor)2 ChildProcessor (me.lucko.luckperms.bukkit.processors.ChildProcessor)1 DefaultsProcessor (me.lucko.luckperms.bukkit.processors.DefaultsProcessor)1 ChildProcessor (me.lucko.luckperms.nukkit.processors.ChildProcessor)1 DefaultsProcessor (me.lucko.luckperms.nukkit.processors.DefaultsProcessor)1 FixedDefaultsProcessor (me.lucko.luckperms.sponge.processors.FixedDefaultsProcessor)1 GroupDefaultsProcessor (me.lucko.luckperms.sponge.processors.GroupDefaultsProcessor)1 UserDefaultsProcessor (me.lucko.luckperms.sponge.processors.UserDefaultsProcessor)1