Skip to content

Configuration

Everything is set in plugins/CatchTheBeacon/config.yml. Change it while the server is stopped, or restart the server afterwards. New options of an update are added to your file automatically; your values and comments stay.

Texts use MiniMessage (<red>, <bold>, <#ff8800>, <gradient:aqua:blue>, …). Old color codes like &c still work.

Other files

Teams, the kit and all messages are in their own files, see Teams, kit and messages. Settings of single arenas (players, display name) are in arenas.yml.

General

Option Default Meaning
prefix [CatchTheBeacon] in front of all messages, empty for none
tablist.header / footer tab list of players in games (lines, MiniMessage)

Lobby

Option Default Meaning
lobby.countdown 180 seconds until the game starts once the arena's min-players are in the lobby (at least 10). Shortened to 10 seconds when the lobby is full.

Game

Option Default Meaning
game.spawn-protection 5 radius around the team spawns where no blocks can be placed or broken (0: off)
game.beacon-warning-radius 10 the team is warned when an enemy comes this close to one of its beacons
game.respawn-protection 3 seconds without damage after spawning
game.show-death-messages true "x was killed by y"
game.friendly-fire false players can hurt their own team
game.last-hit-seconds 10 the last attacker gets the kill if the victim dies within this time (void, lava, …), 0: only direct kills
game.instant-death-height 0 players die instantly below this height (false: off)
game.only-placed-blocks-breakable false true: only blocks placed by players can be broken, the map stays as it is
game.rejoin-seconds 120 players who leave a running game can come back into their team within this time (0: off)
game.extra-hearts 3 hearts in addition to the normal 10
game.combat modern modern: current PvP with attack cooldown, legacy: 1.8 PvP without cooldown
game.unbreakable-blocks [ENCHANTING_TABLE] materials nobody can break, not even explosions
game.beacon-compass true the compass of the kit points to the nearest enemy beacon, or to an own beacon while it is being mined
game.round-summary true summary at the end of a round
game.ending-seconds 15 seconds from the end of a round until players are sent back (at least 3)
game.balance-teams true players who chose Random are put into teams by their win rate

Bases

The bases around the beacons, see How a round works. All radii are in blocks, 0 turns the feature off.

Option Default Meaning
base.mining-fatigue-radius 6 enemies near a beacon get Mining Fatigue
base.mining-fatigue-level 1 1 = Mining Fatigue I (a beacon takes ~15 s), 2 = Mining Fatigue II (much slower)
base.regeneration-radius 8 defenders regenerate near their own beacons
base.trap-radius 5 the first enemy coming this close gets blindness and slowness
base.trap-seconds 4 how long the trap lasts
base.camping-radius / camping-seconds 4 / 30 players near their own beacon for longer get poison (not while enemies are near)
base.mining-bossbar true everybody sees a boss bar while a beacon is being mined

Resources

Blocks of the map that give a reward when broken (instead of their normal drop). One of the rewards is picked by chance; armor is put on directly if it is better than the worn one.

resources:
  - block: IRON_BLOCK
    rewards:
      - IRON_HELMET
      - IRON_CHESTPLATE
      - IRON_LEGGINGS
      - IRON_BOOTS
      - IRON_SWORD
  - block: GOLD_BLOCK
    rewards:
      - GOLDEN_APPLE:2     # material:amount
      - ARROW:8

Events

Things that happen after some minutes of a round, shown as Next event in the scoreboard. Minutes can be fractions (minute: 7.5).

Action Effect
beacon-protection-off the blocks around the beacons can be changed
effects all players get the effects in effects ("SPEED:1" = Speed II)
end the round ends: the team with more beacons left wins, otherwise nobody
events:
  - minute: 10
    action: beacon-protection-off
  - minute: 15
    action: effects
    effects:
      - "SPEED:0"
      - "STRENGTH:0"
  - minute: 25
    action: end

Without an end event a round lasts until a team has lost both beacons.

Spectators and chat

Option Default Meaning
spectators.enabled true players can watch running games
chat.team-chat true while playing, messages only go to the own team
chat.shout-prefix ! messages starting with this go to everybody in the game (empty: off)
chat.isolate-games true players in games don't read the chat of players outside of games

Stats and database

Option Default Meaning
stats.enabled true save kills, deaths, wins, … of every player
sql.* off MySQL/MariaDB instead of SQLite, see Stats; "${NAME}" reads an environment variable
achievements.enabled true achievements
achievements.quick-win-minutes 5 time limit of That was quick
tips.rounds 3 new players get tips in the action bar during their first rounds (0: off)
rewards.* off money for kills, beacons, wins, see Rewards

Variants

Option Default Meaning
variants.voting true players vote for a variant in the lobby
variants.list all four the variants to vote for: rush, bow-only, no-iron, one-hit

See Variants for their rules.

Network, parties and NPCs

Option Meaning
network.* one game per server behind Velocity, see Velocity network
parties.* parties join together and play in the same team, see Supported plugins
npcs.show-status join NPCs show the state of their game, see Join NPCs

Telemetry and updates

Option Default Meaning
sentry.enabled true anonymous error reports, see Privacy
update-checker.enabled true checks GitHub for new versions and tells admins on join

bStats is turned off in plugins/bStats/config.yml.

The default config.yml

config.yml
############################################################
# +------------------------------------------------------+ #
# |                     - Config -                       | #
# |               Plugin by Christian34                  | #
# +------------------------------------------------------+ #
############################################################

# language of the messages: en (messages.yml) or de (messages_de.yml) - other languages: put a translated
# messages_<language>.yml into the plugin folder (missing texts are English); restart after a change
language: en
# texts use MiniMessage (<red>, <bold>, <#ff8800>, <gradient:aqua:blue>, ... see https://docs.papermc.io/adventure/minimessage/format),
# old color codes (&c) still work - the same goes for messages.yml
# in front of all messages (leave it empty for none)
prefix: "<dark_gray>[<aqua>CatchTheBeacon<dark_gray>]"
tablist:
  header:
    - "<aqua><bold>Catch<white>The<aqua>Beacon</bold> <dark_gray>■ <gray>Your <aqua>Network"
  footer:
    - "<gray>Discord <dark_gray>» <white>discord.gg <dark_gray>▎ <gray>powered by <dark_gray>» <aqua><bold>Christian34"
lobby:
  # seconds until the game starts once enough players are in the lobby (at least 10)
  # it is shortened to 10 seconds if the lobby is full, /ctb start starts the game in 5 seconds
  countdown: 180
game:
  # set it to '0' to disable it
  # blocks in this radius cannot be set or broken
  spawn-protection: 5
  # the team is warned if an enemy comes this close to one of its beacons (in blocks)
  beacon-warning-radius: 10
  # the player cannot get any damage in this time (time in seconds)
  respawn-protection: 3
  # "x was killed by y" - the messages can be changed in 'messages.yml'
  show-death-messages: true
  # true: players can hurt the players of their own team
  friendly-fire: false
  # the last player who hit somebody gets the kill if the victim dies within this time (knocked into the void,
  # into lava, ...) - in seconds, 0: only direct kills count
  last-hit-seconds: 10
  # players die instantly below this height instead of falling into the void (false: off)
  instant-death-height: 0
  # true: players can only break blocks placed by players, the map stays as it is
  only-placed-blocks-breakable: false
  # a player who leaves a running game can come back into the team within this time (in seconds, 0: disabled)
  rejoin-seconds: 120
  # hearts the players have in addition to the normal 10 hearts
  extra-hearts: 3
  # modern: current pvp with attack cooldown, legacy: 1.8 pvp without attack cooldown
  combat: modern
  # blocks nobody can break (also not with explosions)
  unbreakable-blocks:
    - ENCHANTING_TABLE
  # a compass in the kit points to the nearest enemy beacon - or to an own beacon while it is being mined
  beacon-compass: true
  # summary at the end of a round: MVP, most kills, destroyed beacons, mined resources
  round-summary: true
  # seconds after the end of a round (winner, fireworks) until the players are sent back (at least 3)
  ending-seconds: 15
  # players choosing "random" are put into teams by their win rate (from the stats), so teams are even
  balance-teams: true
# the bases around the beacons
base:
  # enemies near a beacon get mining fatigue, so destroying it takes about 15 seconds (radius in blocks, 0: disabled)
  # their team has to protect them meanwhile - the central idea of the game
  mining-fatigue-radius: 6
  # 1 = mining fatigue I (beacon: ~15 s), 2 = mining fatigue II (much slower)
  mining-fatigue-level: 1
  # defenders get regeneration near their own beacons (radius in blocks, 0: disabled)
  regeneration-radius: 8
  # every beacon has a trap: the first enemy coming this close gets blindness and slowness (in blocks, 0: disabled)
  trap-radius: 5
  # how long the trap lasts (in seconds)
  trap-seconds: 4
  # players standing near their own beacon for too long get poison (radius in blocks, 0: disabled)
  # the time doesn't count while enemies are near the beacon - defending is no camping
  camping-radius: 4
  camping-seconds: 30
  # everybody sees a boss bar while a beacon is being mined (with its progress)
  mining-bossbar: true
# blocks of the map that give rewards when broken (instead of their normal drop): one of the rewards by chance,
# armor is put on if it is better ("IRON_INGOT:4" = 4 iron ingots)
resources:
  - block: IRON_BLOCK
    rewards:
      - IRON_HELMET
      - IRON_CHESTPLATE
      - IRON_LEGGINGS
      - IRON_BOOTS
      - IRON_SWORD
  - block: DIAMOND_BLOCK
    rewards:
      - DIAMOND_HELMET
      - DIAMOND_CHESTPLATE
      - DIAMOND_LEGGINGS
      - DIAMOND_BOOTS
      - DIAMOND_SWORD
# things that happen after some minutes, shown as "Next event" in the scoreboard
# actions: beacon-protection-off (blocks around beacons can be changed), effects (all players get the effects,
# e.g. "SPEED:1" = speed II), end (the team with more beacons wins, otherwise nobody)
events:
  - minute: 10
    action: beacon-protection-off
  - minute: 15
    action: effects
    effects:
      - "SPEED:0"
      - "STRENGTH:0"
  - minute: 25
    action: end
spectators:
  # players can watch running games (/ctb spectate or /ctb join if no game is waiting)
  enabled: true
chat:
  # while playing, messages only go to the own team
  team-chat: true
  # messages starting with this go to everybody (empty: disabled)
  shout-prefix: "!"
  # players in games don't read the chat of players outside of games
  isolate-games: true
stats:
  # saves kills, deaths, wins, ... of every player in the database (placeholders with PlaceholderAPI)
  enabled: true
# player data (stats) in MySQL or MariaDB - use it in a network, so all servers share the stats
# disabled: saved in plugins/CatchTheBeacon/database.db (SQLite)
# "${NAME}" is replaced with the environment variable NAME, so the password doesn't have to stand in this file, e.g.
# password: "${CTB_MYSQL_PASSWORD}" (works for every value here). Use a MySQL user that only has rights on this
# database, not root.
sql:
  enabled: false
  host: 'localhost'
  port: 3306
  database: 'CatchTheBeacon'
  username: 'username'
  password: 'password'
  # tables are called <prefix>_stats (the same database can be used for EasyPrefix)
  table-prefix: 'ctb'
# for servers behind a Velocity proxy (enable bungee-plugin-message-channel in velocity.toml, it is by default)
network:
  # standalone: the games run on this server (no network)
  # game: this server hosts the game of one arena - players joining the server join it (or watch it),
  #       after the game or with /ctb quit they are sent to the lobby server (ctb.network.bypass: not put into the game)
  # lobby: join signs ("[ctb]" + server name) and /ctb join send players to the game servers below
  mode: standalone
  # game servers: the name of the lobby server in velocity.toml
  lobby-server: lobby
  # game servers: the arena of this server (empty: the first playable one)
  arena: ""
  # lobby server: the game servers - name in velocity.toml and address to read their state from (host:port)
  servers:
    - name: ctb-1
      address: 127.0.0.1:25566
# parties of the plugins Parties or Party and Friends (in a network: "Spigot Party API for Party and Friends" on the
# game servers; the proxy plugins take the members along when the leader is sent to a game server)
parties:
  enabled: true
  # the party leader takes the members of their party on this server into the game (/ctb join, join signs)
  join-together: true
  # parties play in the same team, as long as the teams stay even (players who chose a team keep it)
  same-team: true
# join NPCs of Citizens or FancyNpcs (/ctb npc link <arena>)
npcs:
  # linked NPCs show the state of the game (Citizens: an extra hologram line, FancyNpcs: behind the display name)
  show-status: true
# money of an economy plugin (needs Vault or VaultUnlocked and an economy plugin, e.g. EssentialsX), 0 = nothing
rewards:
  enabled: false
  kill: 5
  beacon: 20
  # every player of the winning team
  win: 50
  # every player who is still in the game at the end, also without a winner
  game: 10
achievements:
  # e.g. "Last-second rescue": kill an enemy while they are mining your beacon (saved in the database, /ctb achievements)
  enabled: true
  # "That was quick": win within this time (in minutes)
  quick-win-minutes: 5
tips:
  # new players get tips in the action bar during their first rounds (0: disabled, needs the stats)
  rounds: 3
variants:
  # players vote for a variant in the lobby (item), the one with the most votes is played (no votes: normal)
  voting: true
  # rush: mining takes half the time, events come twice as fast
  # bow-only: only arrows hurt, bows have infinity
  # no-iron: resource blocks give nothing
  # one-hit: every hit of an enemy kills
  list:
    - rush
    - bow-only
    - no-iron
    - one-hit
# anonymous error reports to Sentry, so bugs of CatchTheBeacon get fixed: only errors in the code of
# CatchTheBeacon, without player names, uuids or the address of the server - set to false to send nothing
# (the anonymous statistics of bStats are disabled in plugins/bStats/config.yml)
sentry:
  enabled: true
# checks GitHub for new versions of CatchTheBeacon (at the start and every 12 hours) and tells the console and the
# admins (ctb.admin) every time they join - only the list of releases is requested, nothing is sent about the server
update-checker:
  enabled: true