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

OtPass

Install and use OtPass for Minecraft: seasons, quests, rewards, premium, commands, permissions, placeholders and networks

OtPass | Minecraft

Requirements

  • A Paper server on Minecraft 1.21.11, 26.1, 26.2 or 26.3.
  • Java 21 or newer.
  • Vault. An economy plugin that supports Vault, such as EssentialsX or CMI, is needed for money rewards and for buying premium with money.
  • Optional: PlaceholderAPI for scoreboards and holograms.

OtPass uses Paper features such as native dialogs, so plain Spigot and Bukkit servers are not supported.

Installation

Step 1: Add the plugin

Extract the zip and put OtPass-1.0.jar in the plugins folder of your server, next to Vault.

Step 2: Restart the server

Restart the server. Do not use /reload. OtPass creates config.yml, quests.yml, rewards.yml, messages.yml and an SQLite database in plugins/OtPass. The console shows:

[OtPass] OtPass 1.0 enabled with SQLite storage, 30 tiers.

Step 3: Set the season

Open config.yml and set season.start to the day your season begins and season.length-days to how long it runs. Run /pass admin reload and type /pass in game.

How the pass works

Players earn XP by completing quests. Every xp-per-tier XP is one tier, and every tier can hold a reward on the free track and one on the premium track. The default pass has 30 tiers of 1,000 XP.

Claiming rewards

/pass shows seven tiers per page: the free rewards on top, your progress in the middle and the premium rewards below. A reward that is ready to claim glows. Click it to claim it, or click the minecart or type /pass claim to claim everything at once. Items that do not fit in the inventory drop at the player's feet.

Quests

/pass quests shows three kinds of quests:

  • Daily quests: daily-count quests picked from the daily pool. They rotate at reset-hour every day.
  • Weekly quests: weekly-count quests from the weekly pool, rotating on weekly-reset-day.
  • Season quests: every quest in the season pool, for the whole season.

Every player gets the same daily and weekly quests, so players can help each other and talk about them. A quest marked premium: true only counts for players with premium.

Premium

A player has premium when they bought it with /pass premium, when staff gave it with /pass admin premium, or when they have the permission otpass.premium. Give that permission from your webstore to sell premium for real money. A player who gets premium later can claim the premium rewards of every tier they already reached.

Commands

CommandWhat it doesPermission
/passOpen the battle passotpass.use
/pass questsDaily, weekly and season questsotpass.use
/pass claimClaim every reward you unlockedotpass.use
/pass premiumBuy the premium track with moneyotpass.use
/pass topThe ten players with the most XPotpass.use
/pass admin xp <player> add|take|set <amount>Change a player's XP, also when they are offlineotpass.admin
/pass admin premium <player> give|takeGive or take premiumotpass.admin
/pass admin reset <player>Reset a player's pass for this seasonotpass.admin
/pass admin info <player>Show a player's tier, XP and premiumotpass.admin
/pass admin reloadReload all filesotpass.admin

Aliases: /battlepass, /bp and /otpass. Admin commands work from the console, so a webstore can run pass admin premium {name} give.

Permissions

PermissionAllowsDefault
otpass.useOpen the pass, do quests and claim rewardsEveryone
otpass.premiumHave the premium track without buying itNobody
otpass.adminAdmin commandsOperators

Configuration

Change the files in plugins/OtPass and run /pass admin reload. Changes to storage need a restart.

Season

season:
  number: 1
  name: 'Season 1'
  start: '2026-12-01'
  length-days: 60
  timezone: 'UTC'

xp-per-tier: 1000

Quests only count between the start and the end of the season. Rewards can still be claimed after the season ended. To start a new season, raise number, set a new start and reload: every player starts again at tier 0, and the data of the old season stays in the database.

Quest rotation

quests:
  daily-count: 4
  weekly-count: 4
  reset-hour: 0
  weekly-reset-day: MONDAY

reset-hour uses the season timezone. Put more quests in a pool than the count to get variety: the default daily pool has 16 quests and shows 4 a day.

Premium and anti-exploit

premium:
  buy-enabled: true
  price: 50000
  permission: 'otpass.premium'

anti-exploit:
  ignore-placed-blocks: true
  ignore-spawner-mobs: true
  ignore-creative: true
  afk-minutes: 5
  player-kill-cooldown-minutes: 10
  • ignore-placed-blocks: a block a player placed does not count when it is broken again, so nobody can place and break the same block for XP.
  • ignore-spawner-mobs: mobs from spawners, spawn eggs, iron golem farms and built golems and withers do not count for kill quests.
  • afk-minutes: playtime quests stop counting when a player did not move the camera, chat or click for this long.
  • player-kill-cooldown-minutes: killing the same player again only counts after this time. Kills between players with the same IP address never count.

quests.yml

daily:
  iron:
    type: break
    target: [IRON_ORE, DEEPSLATE_IRON_ORE]
    amount: 16
    xp: 200
    name: 'Mine 16 iron ore'
    icon: RAW_IRON
  fisher:
    type: fish
    amount: 12
    xp: 150
    name: 'Catch 12 fish'
weekly:
  netherite:
    type: break
    target: ANCIENT_DEBRIS
    amount: 8
    xp: 1000
    name: 'Mine 8 ancient debris'
    premium: true
season:
  dragon:
    type: kill
    target: ENDER_DRAGON
    amount: 1
    xp: 3000
    name: 'Defeat the Ender Dragon'

Leave out target to count anything. name uses MiniMessage and icon is any item. Quest types and their targets:

TypeCountsTarget
breakBlocks brokenBlocks
placeBlocks placedBlocks
harvestFully grown crops brokenWHEAT, CARROTS, POTATOES, BEETROOTS, NETHER_WART, COCOA, TORCHFLOWER_CROP, PITCHER_CROP
killMobs killedEntity types, such as ZOMBIE
kill_playerPlayers killedNone
fishItems caughtItems, such as COD
craftItems crafted, shift click includedItems
smeltItems taken from a furnaceItems
eatFood eaten and potions drunkItems
breedAnimals bredEntity types
tameAnimals tamedEntity types
enchantItems enchanted at a tableItems
tradeVillager tradesThe item received
walkBlocks walked on the groundNone
playtimeMinutes played while not AFKNone

rewards.yml

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, and the number of tiers is the length of the pass. A track can hold several rewards: item with amount, name, lore and enchants, money, command or a list of commands. Commands run from the console and <player> is replaced by the player's name. Leave out a track to give no reward on that tier.

Currency, dialogs and sounds

currency:
  use-economy-format: false
  prefix: '$'
  suffix: ''
  decimals: 2

notifications:
  actionbar: true
  tier-up-title: true

dialogs: true

sounds:
  open: BLOCK_CHEST_OPEN
  click: UI_BUTTON_CLICK
  claim: ENTITY_PLAYER_LEVELUP
  quest: ENTITY_EXPERIENCE_ORB_PICKUP
  tier-up: UI_TOAST_CHALLENGE_COMPLETE
  error: ENTITY_VILLAGER_NO

With dialogs: false buying premium asks for a second click or /pass premium confirm instead of a dialog. actionbar shows quest progress above the hotbar. Set a sound to none to turn it off.

Placeholders

With PlaceholderAPI installed, OtPass registers these placeholders:

PlaceholderShows
%otpass_tier%, %otpass_next_tier%, %otpass_max_tier%Tiers
%otpass_xp%, %otpass_xp_in_tier%, %otpass_xp_needed%, %otpass_xp_per_tier%XP
%otpass_progress_percent%Progress to the next tier, 0 to 100
%otpass_premium%yes or no
%otpass_claimable%Rewards ready to claim
%otpass_daily_done%, %otpass_daily_total%, %otpass_weekly_done%, %otpass_weekly_total%Quests done
%otpass_season%, %otpass_season_ends%, %otpass_daily_reset%, %otpass_weekly_reset%Season name and timers

Networks

Point every server at the same MySQL or MariaDB database and they share one pass.

storage:
  type: mysql
  mysql:
    host: localhost
    port: 3306
    database: minecraft
    username: root
    password: ''
    pool-size: 4
  table-prefix: otpass_
  sync-interval-seconds: 5
  • Progress is saved every sync-interval-seconds and when a player leaves, so players keep their quests when they switch servers.
  • XP is added in the database instead of overwritten, so XP given by staff on one server is never lost on another. Other servers pick up XP and premium changes within 30 seconds.
  • Every claim is recorded in the database before the reward is given, so a reward can never be paid twice, not even when a player claims and switches servers at the same moment.
  • Use the same config.yml, quests.yml and rewards.yml on every server.

Messages

Every text is in plugins/OtPass/messages.yml and uses MiniMessage, so colours, gradients and hex codes work. Run /pass admin reload after a change.

Frequently asked questions

How do I sell premium in my webstore?

Let your webstore run pass admin premium {name} give from the console, or give the permission otpass.premium with your permissions plugin. Set premium.buy-enabled to false if premium should only be sold in your store.

Can players farm XP?

Placed blocks, spawner and farm mobs, creative mode and AFK time do not count, and player kills have a cooldown. Keep the amounts in your quests realistic for your server and the pass stays fair.

What happens at the end of a season?

Quests stop counting and players can still claim the rewards they reached. Start the next season by raising season.number.

Does it work on Spigot or Folia?

No. OtPass needs Paper or a fork of it and does not support Folia yet.

Where do I get help?

Open a ticket at builtbyotte.com/help.