Configuration
Every key in config.yml, what it controls and its default.
plugins/SeasonForge/config.yml holds the settings that apply to every season. Season content (levels, quests, the shop) lives in the season folders, menus in menus. Run /battlepass admin reload after a change.
Every key in the shipped file is read by the plugin. A value that cannot be understood (a wrong timezone, a time like 25:00) is named in the console and its default is used instead.
General
language: en_US
timezone: Asia/Kolkata
date-format: "dd MMM yyyy, HH:mm"| Key | What it does | Default |
|---|---|---|
language | Language file from lang/, without .yml. en_US, fr_FR, es_ES or your own. See Languages. | en_US |
timezone | Time zone for season dates and every quest reset, as a zone name like Europe/London or America/New_York. An unknown zone falls back to the server's own. | Asia/Kolkata |
date-format | How season start and end dates are shown (%battlepass_season_start% and the season info command). dd day, MMM short month, yyyy year, HH:mm time. | dd MMM yyyy, HH:mm |
Set timezone to your own zone first. The default is India's, and every season date and quest reset is read in it.
storage
| Key | What it does | Default |
|---|---|---|
storage.type | SQLITE, MYSQL or MARIADB | SQLITE |
storage.host | Database address | localhost |
storage.port | Database port | 3306 |
storage.database | Database name | seasonforge |
storage.username | Database user | root |
storage.password | Database password | empty |
storage.use-ssl | Use SSL for the connection | false |
storage.table-prefix | Put in front of every table name. Letters, numbers and _ only. | sf_ |
storage.pool-size | Most open connections (at least 2) | 6 |
storage.save-interval | Seconds between saves of changed player data (at least 30) | 300 |
The host, port, name, user and password are only used for MySQL and MariaDB. See Storage.
seasons
| Key | What it does | Default |
|---|---|---|
seasons.premium-carry-over | Keep a player's premium when the next season starts | false |
seasons.check-interval | Seconds between checks for a season to start or end by date (at least 5) | 30 |
seasons.no-season-mode | What /battlepass does with no season running: MESSAGE sends season.none, MENU opens menus/no-season.yml | MESSAGE |
resets
| Key | What it does | Default |
|---|---|---|
resets.daily.time | Time daily quests reset, 24 hour HH:mm | 00:00 |
resets.weekly.day | Day weekly quests reset, MONDAY to SUNDAY | MONDAY |
resets.weekly.time | Time weekly quests reset | 00:00 |
resets.monthly.day | Day of the month monthly quests reset, 1 to 31. A short month uses its last day. | 1 |
resets.monthly.time | Time monthly quests reset | 00:00 |
resets.announce | Tell online players when their daily, weekly or monthly quests reset | true |
Shop purchase limits use the same reset times.
levels
| Key | What it does | Default |
|---|---|---|
levels.level-up-mode | COMBINED sends one level up message for several levels gained at once, EACH sends one per level | COMBINED |
levels.title | Show the level up title | true |
levels.chat | Send the level up chat message | true |
levels.sound | Play the level-up sound | true |
premium
| Key | What it does | Default |
|---|---|---|
premium.sources.purchase | Players can buy premium in the premium menu | true |
premium.sources.permission | Holding battlepass.premium counts as owning premium | true |
premium.sources.command | /battlepass admin premium give works | true |
premium.broadcast-unlock | Announce to the whole server when a player unlocks premium | false |
See Premium.
quests
| Key | What it does | Default |
|---|---|---|
quests.count-player-placed | Count blocks players placed for BREAK_BLOCK, HARVEST and OBTAIN_ITEM. Off stops place and break farming. | false |
quests.progress-actionbar | Show an action bar while a quest moves forward | true |
quests.progress-actionbar-cooldown | Milliseconds between progress action bars for one player | 1500 |
quests.walk.count-flying | WALK counts blocks moved while flying | false |
quests.walk.count-gliding | ... while gliding with an elytra | false |
quests.walk.count-swimming | ... while swimming | true |
quests.walk.count-riding | ... while riding a mount, boat or minecart | false |
quests.playtime.exclude-afk | Leave AFK time out of PLAYTIME, when EssentialsX or CMI is installed | true |
quests.money.poll-interval | Seconds between balance checks for GAIN_MONEY and SPEND_MONEY when your economy is not EssentialsX or CMI | 10 |
See Quest types.
rewards
| Key | What it does | Default |
|---|---|---|
rewards.inventory-full | When reward items do not fit: DROP at the player's feet, or PENDING to keep them until /battlepass claimall or the next join | DROP |
rewards.list-received | After a claim or Claim All, list every reward the player just got, with amounts, under the claim message | true |
progress-bar
The bar used by %progress_bar% in menus, messages and placeholders.
| Key | What it does | Default |
|---|---|---|
progress-bar.length | Number of characters | 20 |
progress-bar.filled | Character for the filled part | | |
progress-bar.empty | Character for the empty part | | |
progress-bar.filled-colour | Colour of the filled part, a MiniMessage tag | <#f2b544> |
progress-bar.empty-colour | Colour of the empty part | <#5c5c5c> |
placeholder-format
| Value | Use it when |
|---|---|
LEGACY | Your scoreboard, tab or hologram plugin expects the old colour codes. Most do. (default) |
MINIMESSAGE | The plugin reading the placeholders understands MiniMessage tags |
This only changes placeholder values that carry colour, like %battlepass_season_name% or %battlepass_progress_bar%.
leaderboard
| Key | What it does | Default |
|---|---|---|
leaderboard.size | Positions kept for the %battlepass_top_...% placeholders | 10 |
leaderboard.refresh-interval | Seconds between refreshes (at least 30) | 300 |
The leaderboard ranks the running season by level, then XP.
time-format
How time left and reset countdowns are written (%battlepass_season_time_left%, %battlepass_daily_reset_in% and the menus).
| Key | What it does | Default |
|---|---|---|
time-format.days | Days | %amount%d |
time-format.hours | Hours | %amount%h |
time-format.minutes | Minutes | %amount%m |
time-format.seconds | Seconds | %amount%s |
time-format.separator | Text between the parts | a space |
time-format.max-parts | Most parts shown at once | 2 |
With the defaults, 3 days and 4 hours left shows as 3d 4h.