Klasse ParcelFlagService
java.lang.Object
de.delinkedde.areashopreborn.application.ParcelFlagService
Applies a configured allowlist of WorldGuard state flags to managed parcels.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungParcelFlagService(Database database, EstateRepository estates, WorldGuardGateway worldGuard, ThreadBridge threads, Collection<String> allowedFlags) Creates the validated flag service. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns state flags exposed by the server configuration.Applies a state flag after checking parcel management and the configured allowlist.
-
Konstruktordetails
-
ParcelFlagService
public ParcelFlagService(Database database, EstateRepository estates, WorldGuardGateway worldGuard, ThreadBridge threads, Collection<String> allowedFlags) Creates the validated flag service.- Parameter:
database- asynchronous database executorestates- estate repositoryworldGuard- WorldGuard adapterthreads- main-thread bridgeallowedFlags- state-flag names landlords may modify
-
-
Methodendetails
-
set
public CompletableFuture<Void> set(UUID actorId, String regionName, String flagName, String value, boolean administrative) Applies a state flag after checking parcel management and the configured allowlist.- Parameter:
actorId- player or administrator changing the flagregionName- parcel nameflagName- WorldGuard flag namevalue-allow,deny, orunsetadministrative- whether city management checks may be bypassed- Gibt zurück:
- completion future
-
allowedFlags
Returns state flags exposed by the server configuration.- Gibt zurück:
- immutable normalized flag-name set
-