public static interface NucleusKitEvent.Redeem.Pre extends NucleusKitEvent.Redeem, CancelMessageEvent
NucleusKitEvent.Redeem.Failed, NucleusKitEvent.Redeem.Post, NucleusKitEvent.Redeem.Pre
NucleusKitEvent.Redeem
Modifier and Type | Method and Description |
---|---|
void |
setCommandsToExecute(java.util.Collection<java.lang.String> commandsToExecute)
Override the commands run by this kit for this redemption only.
|
void |
setStacksToRedeem(java.util.Collection<org.spongepowered.api.item.inventory.ItemStackSnapshot> stacksToRedeem)
Override the content of the kit for this redemption only.
|
getCommandsToExecute, getLastRedeemedTime, getName, getOriginalCommandsToExecute, getOriginalStacksToRedeem, getRedeemedKit, getStacksToRedeem, isFirstJoin
getTargetEntity
getCancelMessage, setCancelMessage
void setStacksToRedeem(@Nullable java.util.Collection<org.spongepowered.api.item.inventory.ItemStackSnapshot> stacksToRedeem)
stacksToRedeem
- the ItemStackSnapshot
s that should be
redeemed. Set to null to return to original behaviourvoid setCommandsToExecute(@Nullable java.util.Collection<java.lang.String> commandsToExecute)
ConsoleSource
.commandsToExecute
- the commands that should be redeemed, using
{{player}}
as the player key.
Set to null to return to original behaviour.