Zum Hauptinhalt springen

BTC Reward Definition

Defines a reward type that can be given and claimed by players

Felder

FeldTypStandardBeschreibung
rewardIdString—Unique identifier for this reward type (used to reference this reward)
sourceString—Origin of this reward, free-form (e.g. event, vote, daily_login). Used to group and filter rewards in menus and placeholders. Empty = uncategorised
displayItemItem—Display item shown in the rewards menu
requiredInventorySlotsInt0Required free inventory slots to claim this reward (0 = no requirement)
onClaimActionsList<Ref<TriggerableEntry>>emptyActions triggered when this reward is successfully claimed
onClaimFailActionsList<Ref<TriggerableEntry>>emptyActions triggered if claim fails (inventory full)
additionalLoreList<String>emptyDescription lines shown at the top of the reward lore (supports MiniMessage)
displayNameOverrideString—Display name override for the menu (empty = use item name, supports MiniMessage)

How to use it​

rewardId is the key the queue stores, so keep it unique and stable: changing it orphans rewards already granted. source is only a label used in the lore and in the <rewards_source:...> placeholder.

Put what the player actually receives in onClaimActions (give item, money, command action...). requiredInventorySlots should match the number of item stacks those actions give. onClaimFailActions is not read in the current version.

displayItem is the icon in the menu. If it is empty, a chest is shown. displayNameOverride and additionalLore are MiniMessage; the source, slot requirement and tip lines are added after them from the Rewards Config layout.