Klasse HomeAccessService
java.lang.Object
de.delinkedde.areashopreborn.application.HomeAccessService
Coordinates explicit home-teleport access grants for managed regions.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHomeAccessService(Database database, EstateRepository estates, HomeAccessRepository grants) Creates the home access service. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGrants explicit home access to a player.Revokes explicit home access from a player.isExplicitlyAllowed(UUID regionId, UUID playerId) Tests whether a player has an explicit grant for a known region.Lists explicit grants for a region after checking management authority.Lists a bounded explicit-grant prefix after checking management authority.
-
Konstruktordetails
-
HomeAccessService
Creates the home access service.- Parameter:
database- asynchronous database executorestates- estate lookup and audit repositorygrants- home access repository
-
-
Methodendetails
-
allow
public CompletableFuture<Void> allow(UUID actorId, String regionName, UUID playerId, boolean administrative) Grants explicit home access to a player.- Parameter:
actorId- actor managing the regionregionName- region display name or protection identifierplayerId- receiving playeradministrative- whether ownership checks may be bypassed- Gibt zurück:
- completion future
-
deny
public CompletableFuture<Void> deny(UUID actorId, String regionName, UUID playerId, boolean administrative) Revokes explicit home access from a player.- Parameter:
actorId- actor managing the regionregionName- region display name or protection identifierplayerId- affected playeradministrative- whether ownership checks may be bypassed- Gibt zurück:
- completion future
-
list
Lists explicit grants for a region after checking management authority.- Parameter:
actorId- actor managing the regionregionName- region display name or protection identifieradministrative- whether ownership checks may be bypassed- Gibt zurück:
- future containing player identifiers
-
list
public CompletableFuture<List<UUID>> list(UUID actorId, String regionName, boolean administrative, int limit) Lists a bounded explicit-grant prefix after checking management authority.- Parameter:
actorId- actor managing the regionregionName- region display name or protection identifieradministrative- whether ownership checks may be bypassedlimit- maximum identities returned- Gibt zurück:
- future containing player identifiers
-
isExplicitlyAllowed
Tests whether a player has an explicit grant for a known region.- Parameter:
regionId- internal region identifierplayerId- player identifier- Gibt zurück:
- future containing the access decision
-