Rewards are in plugins/OtPass/rewards.yml. Run /pass admin reload after a change.
Tiers#
tiers:
1:
free:
icon: COAL
name: '<green>32x Coal'
rewards:
- item: COAL
amount: 32
premium:
icon: DIAMOND_SWORD
name: '<gold>Season sword'
lore:
- '<gray>Sharpness V and Looting III'
- '<gray>$5,000'
rewards:
- item: DIAMOND_SWORD
name: '<gold>Season 1 Blade'
enchants:
sharpness: 5
looting: 3
- money: 5000
- command: 'lp user <player> permission set tag.season1'
Tiers count up from 1 without gaps. The number of tiers is the length of the pass. A gap or a name that is not a number stops the list and is logged. The default file has 30 tiers.
Each tier has a free track and a premium track. Leave out a track, or leave its rewards empty, to give no reward on that tier.
| Key | Default | What it does |
|---|---|---|
icon |
CHEST |
The item shown in the menu. An unknown item is replaced and logged. |
name |
Tier N reward |
The name in the menu. Uses MiniMessage. |
lore |
none | Extra lines in the menu. Uses MiniMessage. |
rewards |
none | The list of rewards. |
Reward entries#
Every entry in rewards is one of the following. An entry holds one kind. When an entry has more than one kind, OtPass uses the first of money, command, commands, item.
| Entry | What it gives |
|---|---|
item: <ITEM> |
An item. Optional keys: amount (default 1, up to 36 stacks), name, lore (list) and enchants (name and level). |
money: <number> |
Money through Vault. Needs an economy plugin. |
command: '<text>' |
One command run by the console. |
commands: |
A list of commands run by the console. |
nameandloreof an item use MiniMessage.enchantsuses Minecraft enchantment names such assharpness. The level can be above the normal maximum. An unknown name is logged and skipped.- In commands,
<player>and%player%are replaced by the player name, and<uuid>by the player UUID. A starting/is removed. - A reward that pays money without an economy plugin writes
A reward pays money but no economy plugin is installedto the console and pays nothing. - A broken entry is logged as
rewards.yml: tier N free: ...and skipped. An item that is not known is skipped. - Items that do not fit in the inventory drop at the player's feet.
Every reward of a track is given at once when the player claims that track of that tier.