FAQ
On this page(23)
How do I update SnBattlePass?
Download the newer snbattlepass-v* release and replace the jar. Configs auto-merge on restart, so your values and comments are kept and new keys appear with their defaults.
Does it support Folia?
No, SnBattlePass is not Folia-compatible.
Does the pass reset each season?
No. The pass is permanent: tiers, XP and claims are kept until an admin resets them with /battlepass reset or /battlepass resetall confirm.
A player bought a pass after reaching tier 30. Do they lose those premium rewards?
No. Buying a pass does not write claim history, it changes which lane the player may open. Every premium reward on a tier they already passed becomes claimable immediately.
How do I sell passes on my web store instead of in game?
Set passes.allow-purchase: false. The menu then shows the pass as sold elsewhere, and the direct purchase route refuses as well, so the store is the only way in. Grant the pass from your store with /battlepass setpass <player> <pass>.
My currency is not Vault. Can players still buy a pass?
Yes. The plugin never talks to an economy API. It reads a balance by expanding a placeholder you configure and charges by running a console command you configure, so any currency with a placeholder and a take command works.
Purchases are refused and the console mentions the balance placeholder. What is wrong?
The configured placeholder did not expand to a number. Check that PlaceholderAPI and the expansion providing it are installed, and avoid placeholders that abbreviate or group digits, such as 1.2K or 1,200. Setting economy.deny-on-unreadable-balance: false lets the purchase through and leaves the charge command to refuse a player who cannot pay.
Which page does the pass menu open on?
Since 2.6.0, the page holding the highest tier the player has reached: a player on tier 23 lands on the page with tiers 19-27 instead of paging through the first two. Coming back from the challenge or confirmation menu keeps the page they were on. Set presentation.open-at-current-tier: false to always open the first page.
Can I remove a button from a menu?
Yes. Delete its letter from the menu's layout: grid. A key the layout does not use is hidden, and because the layout is a list value rather than a key, the auto-merge never restores it.
One of my challenge types never progresses. Why?
Its source plugin is probably not installed, or the tool or crate id in the pool entry does not match. Challenge types map to SnCrates, SnGens, SnEnvoys, SnPets and the farming source (EdTools or RivalHarvesterHoes), and an id is a plain string that cannot be validated at load. Set enabled: false on pool entries whose source plugin is missing.
Which pet box openings count?
SnPets boxes are counted through the SnPets API, and only when a box really opens: an attempt SnPets refuses - a cooldown still running, storage full, a failed success roll - hands the boxes back and adds no progress, and a shift-click stack credits the boxes that fitted. RivalPets boxes are still counted from the right-click on the box item. Both plugins can be installed at once; they never count the same opening.
My players never roll their challenges. Can the plugin tell them?
Since 2.5.0 it does, on its own. A player sitting on rollable slots gets a title and a chat line saying how many are waiting - only while they really can roll something, and at most once every notifications.challenge-reminder.interval-minutes (default 20), counted per player rather than per server. A player who just joined is left alone for join-delay-seconds (default 60) so the line does not land in the middle of the join messages, and a player with nothing to roll does not burn their interval, so the reminder arrives right after a cooldown ends.
Reword it under notifications.challenge-reminder in lang/messages_en.yml ({challenges} is how many are ready, {slots} how many they have), empty both title and subtitle to make it chat-only, or set enabled: false to switch it off - all live on /battlepass reload. %battlepass_challenges_ready% puts the same number on a scoreboard.
Can the server see when someone claims a premium reward?
Since 2.10.0, yes: claiming a Gold or Diamond reward is broadcast to everyone online, as an advert for the pass. The free lane is never announced. Restyle each pass's block under notifications.premium-claim in lang/messages_en.yml, and use notifications.premium-claim-broadcast in config.yml to switch it off (enabled: false) or to tune cooldown-seconds (default 60): after an announced claim, that player's further premium claims inside the window are granted silently, so collecting a backlog of tiers gives one broadcast instead of a flood. Both apply on /battlepass reload.
What happens if I lower the challenge slot count?
Challenges already running in the removed slots freeze: they stop earning and stop paying. Their deadline keeps counting in real time, so raising the count back either resumes them or expires them on the next sweep.
What happens if I lower xp.max-tier?
Stored levels above the new ceiling are clamped to it, and that clamp is written back. Raising the ceiling again does not restore them, so lower this value deliberately.
Which settings need a restart?
The database block, xp.passive.source, integrations.rival-pets.* and integrations.sn-pets.*, and installing or removing SnDungeons. Everything else applies on /battlepass reload, including xp.dungeons.
Can I use RivalHarvesterHoes instead of EdTools?
Yes, since 2.7.0. The battle pass needs one of the two for passive XP and the farm challenge. With only one installed that one is used; with both, xp.passive.source decides (EDTOOLS by default, or RIVAL_HARVESTER_HOES), and changing it needs a restart. The boot log says Hooked into EdTools or Hooked into RivalHarvesterHoes, so you can see which one is live; with neither installed it explains why and the plugin does not enable.
With harvester hoes, every crop break is one farmed block: the extra yield the hoe's enchants add does not multiply pass XP. The id a break reports is the crop's material, so xp.passive.tool-overrides takes entries like SUGAR_CANE: 1.0 (in capitals) and a farm challenge can use filter: WHEAT.
Does SnBattlePass work on a SnDungeons server?
Yes, since 2.9.0, with SnDungeons 0.68.0 or newer. It can even replace the farming plugin: with no EdTools or RivalHarvesterHoes installed, the pass still enables and its XP comes from SnDungeons. The boot log says Hooked into SnDungeons.
Every zone mob kill pays xp.dungeons.sources.kills.xp-per-unit XP times the multiplier of the mob's rarity, optionally only in the listed zones. The pet boost applies as for farming. Kills by AFK clones and heroes never pay, because SnDungeons does not announce them.
A pool entry with type: DUNGEONS counts any SnDungeons objective: kills, rare kills, enchant procs, rebirths, stages, money earned, totem boxes, companion eggs. /dungeons admin objectives types lists them with their context keys. The header of challenges.yml has a starter set to copy.
A DUNGEONS challenge never shows up in the roll. Why?
Either SnDungeons is not installed (one warning at boot says so), or its objective type belongs to a SnDungeons module that is switched off right now. A type that does not exist is skipped silently and comes back when the module does. An entry whose target-formula does not compile does not load at all, and the boot log names it.
I deleted a DUNGEONS entry. What happens to the challenges already running it?
Since 2.9.1 they keep counting until they complete or expire: a rolled challenge freezes its objective, and the plugin keeps listening to every objective a running challenge of an online player needs, not only to the ones in the pool. Deleting or switching off the entry only stops it from being rolled again.
SnDungeons restarted. Do kills still pay?
Since 2.9.1, yes, without /battlepass reload. When SnDungeons disables the console warns that kill XP and DUNGEONS challenges pause, and when it enables again the plugin subscribes once more (another warning says so). A SnDungeons jar replaced while the server runs is the exception: the console says a server restart is needed, and it is.
How do I give something at the last tier, where XP is useless?
Add commands to any challenge entry: console commands run when it completes, after its XP, with {player} replaced. They are frozen when the challenge is rolled, so editing the pool does not change what a running challenge pays.
How do I know a pet's farming boost is actually working?
Since 2.4.0, look at %battlepass_boost% (or the {boost} line of the xp-info tile, if your menu prints it): it is the boost in percentage points the farming drain is paying with right now, 0.0 when nothing matching is equipped. Before 2.4.0 the only visible number was the per-tool XP rate, which a level-1 pet moves from 0.5 to 0.502 - not something anyone notices.
Two things to check when it reads 0.0 with a pet equipped. The pet's id has to start with integrations.sn-pets.pet-id-prefix exactly, capital letters included. And the boot log has to say SnPets detected: farming-XP boost active: since 2.4.0 that line is printed only when the boost really is wired, and an enabled SnPets whose API service is not registered is refused with a warning instead - that means SnPets' own enable did not finish, so read its log and restart. A boost lookup that throws at runtime is reported once with the exception, and later failures go to /battlepass debug.
Remember that a pet's boost is level x percent-per-level up to its rarity ceiling: a freshly obtained level-1 pet is worth 0.4, and only levelling it - which happens while it is equipped and its owner farms - makes the number grow.