Klasse PermissionGateway

java.lang.Object
de.delinkedde.areashopreborn.integration.PermissionGateway

public final class PermissionGateway extends Object
Provides UUID-based permission checks through Vault's active permissions provider.
  • Konstruktordetails

    • PermissionGateway

      public PermissionGateway(net.milkbowl.vault.permission.Permission permission)
      Creates the permission adapter.
      Parameter:
      permission - Vault permissions provider, normally LuckPerms
  • Methodendetails

    • has

      public boolean has(UUID playerId, String node)
      Checks a player permission without requiring the player to be online. This method must be called on Paper's server thread.
      Parameter:
      playerId - player UUID
      node - permission node
      Gibt zurück:
      whether the provider grants the node
    • providerName

      public String providerName()
      Returns the provider name for status and diagnostics.
      Gibt zurück:
      active Vault permission provider name