Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Premium

Sell the premium track with in-game money, with a permission from your webstore or by hand.

On this page

A player has premium when one of these is true:

  • They bought it with /pass premium or the Unlock premium button.
  • Staff gave it with /pass admin premium <player> give.
  • They have the permission from premium.permission, otpass.premium by 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-enabled is false,
  • 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} give from the console after a purchase.
  • Give the permission otpass.premium with 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.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.