Klasse LimitProfileRegistry
java.lang.Object
de.delinkedde.areashopreborn.configuration.LimitProfileRegistry
Loads and selects immutable permission-based limit profiles from
limits.yml.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLimitProfileRegistry(org.bukkit.plugin.java.JavaPlugin plugin) Loads the bundled or existing limits file. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns group overrides in deterministic selection order.profiles()Returns all profiles in deterministic selection order.voidreload()Reloads and validates all profiles atomically.Selects the highest-priority permitted profile, falling back to the default.resolve(Predicate<String> permissionCheck, Collection<String> groupNames) Resolves player and group precedence deterministically.
-
Konstruktordetails
-
LimitProfileRegistry
public LimitProfileRegistry(org.bukkit.plugin.java.JavaPlugin plugin) Loads the bundled or existing limits file.- Parameter:
plugin- owning plugin
-
-
Methodendetails
-
reload
public void reload()Reloads and validates all profiles atomically. -
resolve
Selects the highest-priority permitted profile, falling back to the default.- Parameter:
permissionCheck- predicate testing one permission node- Gibt zurück:
- selected immutable profile
-
resolve
Resolves player and group precedence deterministically. Explicit permission profiles override all group rules. Otherwise, the highest-priority configured rule for an assigned group overrides the default profile.- Parameter:
permissionCheck- predicate testing player permission nodesgroupNames- normalized assigned region-group names- Gibt zurück:
- effective immutable profile
-
profiles
Returns all profiles in deterministic selection order.- Gibt zurück:
- immutable profile list
-
groupOverrides
Returns group overrides in deterministic selection order.- Gibt zurück:
- immutable group-rule list
-