Events
Bukkit events fired by the plugin that your own plugin can listen to.
All events live in the eu.athelion.ultimaterewards.api.event package and are fired on the Bukkit event bus, so they are registered the usual way with @EventHandler.
PlayerPreClaimRewardEvent
yes
Right before a reward is claimed, before any action is executed
getClaimer(), getClaimedReward(), getRewardActionsToExecute()
PlayerClaimedRewardEvent
no
After a reward has been successfully claimed
getClaimer(), getClaimedReward()
ReminderReceiveEvent
yes
Before a player receives a reward reminder
getReceiver(), getAvailableRewards()
ReferralCreateEvent
yes
A player is creating their own referral code
getCreator()
ReferralApplyEvent
yes
A player is applying someone else's referral code
getApplier(), getReferrer()
UserLoadedEvent
no
A player's data has finished loading
getUser()
UserUnloadEvent
no
A player's data is being unloaded (on quit)
getUser()
See Examples for a working listener.
Last updated