Klasse EventActionService
java.lang.Object
de.delinkedde.areashopreborn.integration.EventActionService
- Alle implementierten Schnittstellen:
org.bukkit.event.Listener
Executes strictly validated console-command actions after completed AreaShop business events.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungEventActionService(org.bukkit.plugin.java.JavaPlugin plugin, Database database, EstateRepository estates) Creates and strictly loads the event action service.EventActionService(org.bukkit.plugin.java.JavaPlugin plugin, Database database, EstateRepository estates, long maximumFileBytes, int maximumPrefixes, int maximumCommandsPerEvent, int maximumTotalCommands) Creates and strictly loads a bounded event action service. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidonBought(RegionBoughtEvent event) Handles a completed purchase.voidHandles a completed listing cancellation.voidHandles a completed member change.voidonRentalEnded(RentalEndedEvent event) Handles a completed rental end.voidHandles a completed rental extension.voidonRented(RegionRentedEvent event) Handles a completed rental start.voidHandles a completed resale publication.voidonSoldBack(RegionSoldBackEvent event) Handles a completed sellback.voidHandles a completed direct transfer.voidreload()Reloads and validatesevent-actions.ymlatomically.
-
Konstruktordetails
-
EventActionService
public EventActionService(org.bukkit.plugin.java.JavaPlugin plugin, Database database, EstateRepository estates) Creates and strictly loads the event action service.- Parameter:
plugin- owning plugindatabase- asynchronous database executorestates- audit repository
-
EventActionService
public EventActionService(org.bukkit.plugin.java.JavaPlugin plugin, Database database, EstateRepository estates, long maximumFileBytes, int maximumPrefixes, int maximumCommandsPerEvent, int maximumTotalCommands) Creates and strictly loads a bounded event action service.- Parameter:
plugin- owning plugindatabase- asynchronous database executorestates- audit repositorymaximumFileBytes- maximum YAML sizemaximumPrefixes- maximum allowlisted command labelsmaximumCommandsPerEvent- maximum commands dispatched by one eventmaximumTotalCommands- maximum templates retained across all events
-
-
Methodendetails
-
reload
public void reload()Reloads and validatesevent-actions.ymlatomically. -
onBought
Handles a completed purchase.- Parameter:
event- completed event
-
onSoldBack
Handles a completed sellback.- Parameter:
event- completed event
-
onTransferred
Handles a completed direct transfer.- Parameter:
event- completed event
-
onRented
Handles a completed rental start.- Parameter:
event- completed event
-
onRentalExtended
Handles a completed rental extension.- Parameter:
event- completed event
-
onRentalEnded
Handles a completed rental end.- Parameter:
event- completed event
-
onResaleCreated
Handles a completed resale publication.- Parameter:
event- completed event
-
onListingCancelled
Handles a completed listing cancellation.- Parameter:
event- completed event
-
onMemberChanged
Handles a completed member change.- Parameter:
event- completed event
-