Klasse ParcelFlagService

java.lang.Object
de.delinkedde.areashopreborn.application.ParcelFlagService

public final class ParcelFlagService extends Object
Applies a configured allowlist of WorldGuard state flags to managed parcels.
  • Konstruktordetails

    • ParcelFlagService

      public ParcelFlagService(Database database, EstateRepository estates, WorldGuardGateway worldGuard, ThreadBridge threads, Collection<String> allowedFlags)
      Creates the validated flag service.
      Parameter:
      database - asynchronous database executor
      estates - estate repository
      worldGuard - WorldGuard adapter
      threads - main-thread bridge
      allowedFlags - 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 flag
      regionName - parcel name
      flagName - WorldGuard flag name
      value - allow, deny, or unset
      administrative - whether city management checks may be bypassed
      Gibt zurück:
      completion future
    • allowedFlags

      public Set<String> allowedFlags()
      Returns state flags exposed by the server configuration.
      Gibt zurück:
      immutable normalized flag-name set