public static interface NucleusKitEvent.Redeem extends NucleusKitEvent, TargetPlayerEvent
Pre
is fired before the kit is redeemed - extra checks should be performed.
Post
is fired after a kit is redeemed successfully (defined as a kit would not be redeemable again if it was a one time
kit).
Modifier and Type | Interface and Description |
---|---|
static interface |
NucleusKitEvent.Redeem.Failed
Fired when a player's kit could not be updated.
|
static interface |
NucleusKitEvent.Redeem.Post
Fired when a player's kit has been updated.
|
static interface |
NucleusKitEvent.Redeem.Pre
Fired when a player has redeemed a kit.
|
NucleusKitEvent.Redeem
Modifier and Type | Method and Description |
---|---|
Optional<Instant> |
getLastRedeemedTime()
Gets the last time the kit was redeemed, if any.
|
String |
getName()
Gets the name of the kit.
|
Kit |
getRedeemedKit()
Gets the kit that has been redeemed.
|
getTargetEntity
getCause, getContext, getSource
Optional<Instant> getLastRedeemedTime()
Instant
the kit was last redeemed.String getName()
Kit getRedeemedKit()