Premium
What premium unlocks, the four ways a player can own it, carrying it into the next season, and selling it for real money.
Premium is the second reward track. A player who owns it gets the premium reward on every level they reach, can claim the premium rewards for levels they already passed, and can make progress on premium only quests. Premium is owned per season.
Ways to own premium
| Way | How | Turned on with |
|---|---|---|
| Buying in game | A purchase option in the premium menu, for any currency | premium.sources.purchase |
| Permission | Holding battlepass.premium | premium.sources.permission |
| Command | /battlepass admin premium give <player>, from console too | premium.sources.command |
| Carried over | Owning premium in the previous season | seasons.premium-carry-over |
All three premium.sources settings are true by default, carry over is false.
Buying in game
The premium menu (/battlepass premium) shows one button per entry in purchase-options of menus/premium.yml, each with its own currency and price:
purchase-options:
shop-points:
slot: 29
material: AMETHYST_SHARD
name: "<#f2b544><bold>Buy with Shop Points"
lore:
- "<#ffd98a>⛃ <white>Price: %price%"
- "<#ffd98a>⛃ <white>Your balance: %balance%"
currency: shop-points
price: 2500
confirm: true
money:
slot: 31
material: GOLD_BLOCK
name: "<#f2b544><bold>Buy with Money"
currency: money
price: 1000000
confirm: trueAdd as many options as you like, or remove one to stop selling premium for that currency. Once the player owns premium, the options are replaced by the owned button. With premium.sources.purchase: false no options show and buying is refused.
Permission
With premium.sources.permission: true, anyone holding battlepass.premium owns premium for as long as they hold it. Give it through your permission plugin, for a rank or for a limited time.
battlepass.premium is part of battlepass.*. A rank or staff member with a * wildcard, or battlepass.*, owns premium too. Set premium.sources.permission: false if you do not sell premium through permissions.
Command
/battlepass admin premium give <player>
/battlepass admin premium remove <player>Both work from the console and for offline players who have joined before. With premium.sources.command: false, give is refused (remove still works).
remove only takes away premium given by purchase or command. Premium from the permission stays while the player holds the permission.
Selling premium for real money
Run the command from your web store when someone pays. In Tebex, Emberstore or any store plugin, set the package command to:
battlepass admin premium give <player>Replace <player> with your store's player placeholder (on Tebex that is {username}). The bundled store button in the premium menu shows how to point players at your store with a clickable link:
store:
slot: 33
material: EMERALD
name: "<#f2b544><bold>Buy on the store"
actions:
- "[message] %prefix%<white>Get premium on our store: <#f2b544><click:open_url:'https://store.yourserver.net'>store.yourserver.net</click>"
- "[close]"Change store.yourserver.net to your own store.
Carrying premium into the next season
With seasons.premium-carry-over: true, a player who owned premium (bought or given by command) in the previous season owns it in the new one too, from their first load in the new season. Leave it false to sell premium fresh every season.
When premium unlocks
The player hears premium-unlock, gets the premium.unlocked message, and if premium rewards for levels they already reached are waiting, a second message says how many. With premium.broadcast-unlock: true the whole server sees premium.broadcast.
What premium unlocks
- The premium reward on every level that has one, see Levels and rewards.
- Premium rewards for levels already reached, claimable straight away.
- Progress on quests with
premium-only: true. Without premium these show the locked look and do not move.
Claim All includes premium rewards only for players who own premium.
Placeholders
%battlepass_premium% shows Yes or No, and %battlepass_premium_status% shows "Active" or "Not owned", both from the language file. See Placeholders.