A player has premium when one of these is true:
- They bought it with
/pass premiumor the Unlock premium button. - Staff gave it with
/pass admin premium <player> give. - They have the permission from
premium.permission,otpass.premiumby default.
Premium is stored per season. A new season starts without premium, except for players that have the permission.
Buying with money#
Players pay premium.price through Vault. The default is 50000. A price of 0 makes premium free. Buying is turned off when:
premium.buy-enabledisfalse,- no economy plugin is installed,
- the season has ended.
With dialogs: true a dialog asks to confirm the price. With dialogs: false the button asks for a second click, and /pass premium shows Unlock the premium track for <price>? Type /pass premium confirm. The command /pass premium confirm buys it directly in both cases.
If the purchase cannot be saved, the money is given back and the player sees Something went wrong, your money was given back.
Selling in a webstore#
Choose one:
- Let your webstore run
pass admin premium {name} givefrom the console after a purchase. - Give the permission
otpass.premiumwith your permissions plugin.
Set premium.buy-enabled to false if premium should only be sold in your store. Setting premium.permission to an empty text turns the permission check off.
A permission gives premium for as long as the player has it. A flag set with /pass admin premium stays until you take it with /pass admin premium <player> take. Taking the flag does not remove premium that comes from the permission.
Premium quests#
A quest with premium: true in quests.yml only counts for players with premium. See Quests.