Klasse OwnershipTransferService
java.lang.Object
de.delinkedde.areashopreborn.application.OwnershipTransferService
Coordinates a direct, payment-free parcel transfer between two players.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungOwnershipTransferService(Database database, EstateRepository repository, WorldGuardGateway worldGuard, ThreadBridge threads) Creates the ownership transfer service.OwnershipTransferService(Database database, EstateRepository repository, WorldGuardGateway worldGuard, ThreadBridge threads, EventPublisher events) Creates a transfer service with an explicit event publisher. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungTransfers an unlisted sold parcel and removes all access grants from the previous owner.transfer(UUID ownerId, String regionName, UUID recipientId, OperationCause cause) Transfers an unlisted parcel with cancellable synchronous Bukkit events.
-
Konstruktordetails
-
OwnershipTransferService
public OwnershipTransferService(Database database, EstateRepository repository, WorldGuardGateway worldGuard, ThreadBridge threads) Creates the ownership transfer service.- Parameter:
database- asynchronous database executorrepository- estate repositoryworldGuard- WorldGuard adapterthreads- server-thread bridge
-
OwnershipTransferService
public OwnershipTransferService(Database database, EstateRepository repository, WorldGuardGateway worldGuard, ThreadBridge threads, EventPublisher events) Creates a transfer service with an explicit event publisher.- Parameter:
database- asynchronous database executorrepository- estate repositoryworldGuard- WorldGuard adapterthreads- server-thread bridgeevents- synchronous platform event publisher
-
-
Methodendetails
-
transfer
Transfers an unlisted sold parcel and removes all access grants from the previous owner.- Parameter:
ownerId- current ownerregionName- parcel display name or WorldGuard identifierrecipientId- new owner- Gibt zurück:
- completion future
-
transfer
public CompletableFuture<Void> transfer(UUID ownerId, String regionName, UUID recipientId, OperationCause cause) Transfers an unlisted parcel with cancellable synchronous Bukkit events.- Parameter:
ownerId- current ownerregionName- parcel display name or WorldGuard identifierrecipientId- new ownercause- initiating subsystem- Gibt zurück:
- completion future
-