Skip to content
Edit this page

Configuration

Everything is in plugins/SurvivalGames/. After a change run /sg reload. New options of an update are added to your files automatically; your values and comments stay.

Files of the plugin

File Content
config.yml the settings below
loot.yml the loot of the chests in Survival Games
messages.yml, messages_de.yml the messages
arenas.yml the arenas: game type, map, lobby, center, spawn points, players
lobby.yml the lobby world: its map and spawn
maps/ the maps of the arenas and the lobby world (world folders)
games/<arena>.yml a running Varo: state, teams, players, play time, their inventories in the game, backpacks, bounties
signs.yml the join signs
stats.yml the statistics (with stats.storage: file)
kits.yml the kits
leaderboards.yml the leaderboards: holograms and signs
npcs.yml the join NPCs
backups/<uuid>.yml the inventory, location, ... of players outside of the games while they play (restored after a crash)
backups/<arena>/<day>.zip, <day>_<time>.zip the backups of a Varo
replays/<id>.sgr the recordings of the replays
AGENTS.md, CLAUDE.md notes for AI assistants (written by the plugin)

Warning

Don't edit arenas.yml and games/ while the server is running; use the commands.

Most important options

Option Default Meaning
language en en or de (or your own, see messages)
network.mode standalone standalone, game or lobby (see Network)
chat.separate-games true players only see the chat of their own game
chat.format true the chat in a game shows the team (false: a chat plugin like EasyPrefix formats it)
<type>.prefix "" the prefix of the messages of a game type (empty: prefix)
survival-games.min-players 2 players needed for the lobby countdown
survival-games.grace-period 60 seconds without PvP after the start
survival-games.deathmatch.minutes 20 when the deathmatch starts
survival-games.world-border.shrink-after 8 minutes until the border starts shrinking (0: only in the deathmatch)
survival-games.map-voting.enabled true the players vote for the map in the lobby
survival-games.map-voting.block-last true the map of the last round can't be voted for again right away
survival-games.reveal.minutes 12 when lightnings start to show where the players are
<game type>.advancements false players make progress in their advancements while they are in a game
<game type>.fireworks true fireworks for the winners
varo.play-time 15 minutes every player may play per day
varo.day-start-hour 0 the hour (0-23) a new day starts
varo.play-hours [ ] the times of the day a Varo can be played at, e.g. [ "18:00-20:00" ] (empty: always)
varo.team-size 2 players per team
varo.strikes [ coordinates, inventory, out ] the consequences of the 1st, 2nd, ... strike
varo.peaceful-days, inactive-days, coordinates-from-day 0 the optional rules of a Varo
varo.offline-npc-seconds 60 a villager stands in for players who leave the server
varo.backups 7 the number of backups of a Varo that are kept
stats.storage file file (stats.yml) or mysql (see statistics)
stats.rating.games [ survival-games ] the game types with an Elo rating
stats.achievements.enabled true the players get achievements
update-checker.enabled true looks for new releases on GitHub when the server starts and every 6 hours; admins (sg.admin) read it when they join
sentry.enabled true anonymous error reports of SurvivalGames to Sentry, see Privacy
sentry.include-config true the reports contain the settings of config.yml that differ from the defaults, without passwords, webhooks and addresses
sentry.lag-threshold 1000 reports where SurvivalGames blocks the server thread for this many milliseconds (lag spikes, freezes), 0: off
plugins/bStats/config.yml anonymous statistics (bStats): servers, players, versions, the settings of the plugin (game types, extras, optional plugins) and how often games and features are used, without any names; enabled: false turns them off for all plugins
rewards.enabled false money for kills, wins and games
replays.enabled true the games are recorded and can be watched again (see replays)
replays.games both the game types that are recorded
replays.keep 10 the newest recordings that are kept per arena (0: all of them)
replays.max-playbacks 2 the replays that can be watched at the same time (every one has its own world)
modules.<module>.games the game types an extra is used in

Arenas override min-players, max-players, team-size and world-border.size of their game type (/sg arena <arena> players|teamsize|border).

Changing settings in the game

/sg settings opens a menu with the switches and numbers of the game types in config.yml: a click turns a switch on or off, numbers are typed (/sg settings <type> <setting> <value>, Bedrock players get a form). The lists play-hours and strikes (Varo) and scenarios (UHC) are typed too: entries separated by ;, - empties the list. The same as a command:

/sg settings varo peaceful-days 2
/sg settings survival-games map-voting.enabled off
/sg settings varo world-border.damage 0.5
/sg settings varo play-hours mon-fri 18:00-20:00; sat,sun 14:00-22:00
/sg settings varo strikes warning; coordinates; out
/sg settings uhc scenarios cutclean; timber

The change is saved in config.yml and works right away. Other lists (breakable-blocks, ...) and everything outside of the game types are changed in the file.

Configuring with an AI assistant

If you let an AI assistant (Claude Code, Codex, Cursor, ...) change the files, open it in plugins/SurvivalGames/. The plugin puts AGENTS.md there (and CLAUDE.md, which only refers to it): which files may be changed, that every option is in config.yml and nothing may be invented, which files the plugin overwrites while the server runs, how the messages work, ... The plugin itself doesn't use any AI.

The documentation is available for AI assistants as Markdown, too: llms.txt lists the pages, llms-full.txt contains all of them in one file, the button at the top of every page copies it as Markdown, and <page>/index.md is the Markdown version of a page (for example commands/index.md).

The files are written again on every start and /sg reload (an update brings the notes of its version), so changes in them are lost. agent-files: false in config.yml stops writing them; delete them yourself then.

Statistics

Every game counts the games, wins, kills and deaths of the players per game type (/sg stats, /sg top, the placeholders). They are saved in stats.yml, or in a MySQL/MariaDB database, so that all servers of a network share them:

stats:
  enabled: true
  storage: mysql
  mysql:
    url: jdbc:mysql://localhost:3306/minecraft
    user: minecraft
    password: "${SG_MYSQL_PASSWORD}"
    table: sg_stats

The table is created automatically. Paper ships the MySQL driver, nothing else has to be installed.

Secrets in environment variables

Every text in config.yml can refer to an environment variable: ${NAME} is replaced with the value of the variable NAME when the file is loaded. That keeps the password of the database (and the Discord webhook) out of the file, so you can share config.yml (in a support chat, with an AI assistant, in a git repository) without giving it away. A password written directly into the file works as well.

Set the variable where the server is started:

  • Docker: -e SG_MYSQL_PASSWORD=... or environment: in docker-compose.yml
  • Pterodactyl and other panels: a variable of the server (startup / environment settings)
  • start script: export SG_MYSQL_PASSWORD=... (Linux) or set SG_MYSQL_PASSWORD=... (Windows) before java -jar ...

If the variable isn't set, the console warns once (with the name of the variable, never a value) and the value is empty. The name is up to you, SG_MYSQL_PASSWORD is only an example.

Tip

Create a database user of its own for SurvivalGames that only has rights on its database, not root. If the password gets out anyway, nothing else is at risk:

CREATE USER 'survivalgames'@'%' IDENTIFIED BY '...';
GRANT ALL PRIVILEGES ON minecraft.* TO 'survivalgames'@'%';

Rating

In the game types of stats.rating.games every player has an Elo rating; everybody starts with 1000. At the end of a game every player is compared with every player of the other teams: who lasted longer has beaten the other one. Winning against players with a higher rating brings more than against weaker ones; one game changes the rating by stats.rating.k-factor at most, no matter how many players took part. /sg top rating lists the best, the players see their change at the end of the game.

Leaderboards

The best players in the world, without other plugins, updated every minute:

  • Holograms: /sg leaderboard create <stat> [type] puts the top 10 of a statistic (wins, kills, games, deaths, rating; of one game type or all) where you stand. /sg leaderboard remove removes the nearest one.
  • Signs: a sign with [sgtop] in the first line, the statistic in the second, the rank (1-10, default 1) in the third and (if wanted) the game type in the fourth shows the player on that rank. A player head above the sign (or above the block a wall sign hangs on) gets their skin. Only admins can create the signs; sneak to break them.

/sg leaderboard list lists all of them. For holograms of other plugins use the placeholders.

Achievements

With stats.achievements.enabled the players collect achievements. They are kept with the statistics (stats.yml or the table <table>_achievements of the database), so there are none with stats.enabled: false. A new achievement is announced in the chat, /sg achievements shows the own ones in a menu, /sg achievements <player> lists those of another player. The names and descriptions are texts of messages.yml (achievement_...).

Achievement How to get it
Tribute, Veteran play 1 / 50 games
First strike, Hunter kill 1 / 100 players
Victor, Champion, Legend win 1 / 10 / 50 games
First blood the first kill of a game
Rampage, Unstoppable 3 / 5 kills in one game
Bare skin win without wearing armor
Pacifist win without a kill
Last breath win with one heart or less
Bounty hunter collect the bounty on a player
Sponsor send an item to a player as a spectator
Survivor win a Varo alive
Spotless win a Varo without a strike

Games, kills and wins count over all game types. What a player reached while they were offline (their team won a Varo) comes with their next join. Achievements of a statistic show how far a player is (Veteran (37/50)).

An achievement can bring a reward: money of an economy plugin and commands of the console, also for players who are offline:

stats:
  achievements:
    money: 25                       # for every achievement
    commands:
      all: [ ]                      # for every achievement
      legend:                       # only for this one
        - "lp user {player} parent add legend"

{player}, {uuid} and {achievement} are replaced.

Seasons

/sg season shows the current season and its best players, /sg season <number> the best ones of a past season. An admin ends the season with /sg season end (and --confirm):

  1. the best 10 players of every statistic are kept in seasons.yml,
  2. the best players of ranking get the commands of their place ({player}, {uuid}, {place}, {season}, {value}),
  3. the statistics of reset start at 0 again (the rating at 1000) and the next season begins.
stats:
  seasons:
    ranking: rating
    reset: [ rating ]               # games, wins, kills, deaths, rating
    rewards:
      1: [ "give {player} nether_star 1", "broadcast {player} is the champion of season {season}!" ]
      2: [ "give {player} diamond 16" ]
      3: [ "give {player} diamond 8" ]

Achievements are kept. In a network with a shared database one server ends the season; seasons.yml (the number and the archive) is on that server.

Rewards

With rewards.enabled the players get money of an economy plugin (Vault): kill, win (every player of the winning team) and game (everybody who took part), 0 = nothing.

rewards.commands runs commands of the console for the same events, also without an economy plugin and with enabled: false:

rewards:
  commands:
    kill: [ ]
    win:
      - "give {player} diamond 1"
      - "[10s] broadcast {player} has won in {arena}!"   # 10 seconds later
    game: [ ]

{player}, {uuid}, {arena} and {type} are replaced.

Cosmetics

The players choose effects in /sg cosmetics (or in the main menu /sg): one for their kills, a trail behind their arrows (snowballs, tridents, ...) and one when they win. They are shown in the game types of modules.cosmetics.games.

Kind Cosmetics
Kill effects blood, hearts, firework, lightning, souls, explosion
Arrow trails flames, notes, magic, soul-flames, stars
Win effects flame-ring, music, totem, starfall

modules.cosmetics.unlock says how each one is unlocked:

modules:
  cosmetics:
    unlock:
      blood: free                   # everybody
      hearts: 250                   # bought once with money of an economy plugin
      souls: achievement:hunter     # with an achievement
      lightning: permission         # only with the permission

The permission sg.cosmetic.<name> (sg.cosmetic.* for all) always unlocks a cosmetic, e.g. for a rank of a shop. What a player chose and bought is kept with the statistics (stats.yml or the table <table>_settings), so the cosmetics need stats.enabled; with MySQL the servers of a network share them. The names are texts of messages.yml (cosmetic_..._name).

The whole file

############################################################
# +------------------------------------------------------+ #
# |                     - 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); /sg reload 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>[<gold>SG<dark_gray>]"
# the date of /sg lastseen (https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/format/DateTimeFormatter.html)
date-format: "dd.MM.yyyy HH:mm"
# the sidebar of the players in a game (players, team, kills, countdowns, play time left)
scoreboard: true

# the statistics of the players per game type (games, wins, kills, deaths): /sg stats, /sg top and the placeholders
# %sg_stats_...% and %sg_top_...%
stats:
  enabled: true
  # file: plugins/SurvivalGames/stats.yml
  # mysql: a MySQL/MariaDB database - the servers of a network share the statistics this way (/sg reload after a change)
  # every value can refer to an environment variable, so the password doesn't have to be in this file:
  # password: "${SG_MYSQL_PASSWORD}" - best with a MySQL user of its own that only has rights on this database
  storage: file
  mysql:
    url: "jdbc:mysql://localhost:3306/minecraft"
    user: minecraft
    password: ""
    # the table is created if it doesn't exist
    table: sg_stats
  # the Elo rating of the players in the game types: winning against strong players brings more than against weak
  # ones (everybody starts with 1000, /sg top rating) - the change of a game is at most k-factor
  rating:
    enabled: true
    games: [ survival-games, uhc, duels ]
    k-factor: 32
  # achievements of the players (first win, 3 kills in a game, a win without armor, ...): /sg achievements - saved
  # with the statistics
  achievements:
    enabled: true
    # what a player gets for an achievement (also offline): money of an economy plugin (Vault) and commands of the
    # console ({player}, {uuid}, {achievement}) - for every achievement (all) or one (e.g. legend)
    money: 0
    commands:
      all: [ ]
  # seasons: /sg season end (admins) keeps the best players of the season (/sg season <number>), runs the rewards of
  # the best players of the ranking and sets the statistics of reset to 0 - in a network on one server only
  seasons:
    ranking: rating
    # the statistics that start at 0 again (games, wins, kills, deaths, rating)
    reset: [ rating ]
    # commands of the console per place ({player}, {uuid}, {place}, {season}, {value})
    rewards:
      1: [ ]
      2: [ ]
      3: [ ]

# standalone: the games run next to each other on this server (players join with /sg join or a [sg] sign)
# game: this server runs exactly one game (network.arena), the players come from the lobby server and go back there
#   after the game - players who can't play are turned away before they connect (except ops)
# lobby: the lobby server of the network: no games, /sg join and [sg] signs send the players to a free game server
# the proxy (Velocity/BungeeCord) has to forward the plugin messages of the channel BungeeCord (Velocity:
# bungee-plugin-message-channel = true)
network:
  mode: standalone
  # game servers: the server the players are sent to after the game (the name in the proxy config, empty: kick)
  lobby-server: lobby
  # game servers: the arena of the game of this server
  arena: ""
  # lobby server: the game servers (name in the proxy config + address the lobby pings for the state of the game)
  servers:
    - name: sg-1
      address: localhost:25566

teams:
  # players can create teams with /sg team create (otherwise only admins with /sg game <arena> team create)
  players-can-create: true

chat:
  # players only see the chat of their own game (players outside of games only see each other)
  separate-games: true
  # messages starting with this only go to the own team (empty: no team chat)
  team-prefix: "@"
  # the chat in a game shows the team of the player - runs after chat plugins like EasyPrefix (false: the chat
  # plugin formats the chat, team and spectator chat stay)
  format: true

# the settings of the game types - arenas override min-players, max-players, team-size and world-border.size
# (/sg arena <arena> players|teamsize|border)
survival-games:
  # the prefix of the messages of this game type, e.g. "<dark_gray>[<gold>SG<dark_gray>]" (empty: the prefix above)
  prefix: ""
  min-players: 2
  max-players: 24
  # players per team (1: everybody plays alone)
  team-size: 1
  # the lobby countdown starts once min-players are in the lobby (seconds)
  lobby-countdown: 60
  # the lobby countdown is shortened to this once the game is full
  full-countdown: 10
  # seconds the players stand frozen on their spawn points before the game begins
  start-countdown: 10
  # what happens to players who leave their spawn point before the start: freeze (they can't move) or explode (they
  # are out)
  start-platforms: freeze
  # explode: how often the players are warned (and put back onto their spawn point) before they blow up
  start-platform-warnings: 1
  # without spawn points the players spawn in a circle around the center (radius in blocks)
  spawn-circle-radius: 15
  # seconds without PvP after the start
  grace-period: 60
  # the chests are filled again every ... minutes (0: never)
  refill-minutes: 5
  # members of the same team can hurt each other
  friendly-fire: false
  # players who are out of the game watch the rest (otherwise they leave) - others can watch with /sg spectate
  spectators: true
  # monsters spawn in the arena
  monsters: false
  # the time of day (fixed, 6000: noon)
  time: 6000
  # players make progress in their advancements while they are in the game
  advancements: false
  # players can break and place every block (otherwise only the blocks below and the ones placed in the game)
  building: false
  breakable-blocks: [ cobweb, short_grass, tall_grass, fern, large_fern, dead_bush, oak_leaves, birch_leaves, spruce_leaves, jungle_leaves, acacia_leaves, dark_oak_leaves, cake, tnt ]
  placeable-blocks: [ cobweb, cake, tnt, fire, crafting_table ]
  world-border:
    # the size (blocks) of the world border around the center (0: none)
    size: 500
    # the border starts shrinking ... minutes after the start (0: only in the deathmatch) and is final-size blocks wide
    # after shrink-minutes - everybody is warned a minute before
    shrink-after: 8
    shrink-minutes: 7
    final-size: 150
    # damage per second for every block outside of the border (2 = one heart), starting ... blocks outside of it
    damage: 1.0
    buffer: 0
  deathmatch:
    # the deathmatch starts after ... minutes (0: never) or once only ... players are left (0: never)
    minutes: 20
    players: 3
    # seconds of warning before everybody is teleported back to the spawn points
    warning: 30
    # the world border around the center during the deathmatch shrinks from border-size to final-border-size in
    # border-minutes
    border-size: 75
    final-border-size: 15
    border-minutes: 3
  # lightnings (without damage) show where every player alive is - nobody can hide: every interval seconds after
  # ... minutes or once only ... players are left (0: never)
  reveal:
    minutes: 12
    players: 3
    interval: 60
  # the players vote for the map in the lobby: the arena of the game and other arenas of Survival Games nobody waits
  # in (same team size) - the votes are counted end-seconds before the start, then everybody moves into the arena that
  # has won (not on a game server of a network). Players with sg.vote.2 ... sg.vote.5 have more votes
  map-voting:
    enabled: true
    # the number of maps to choose from (the arena of the game is one of them)
    maps: 5
    # the map of the last round isn't offered again right away (if there are other maps)
    block-last: true
    end-seconds: 10
  # fireworks for the winners
  fireworks: true
  # seconds after the end until the next round (everybody leaves the arena)
  ending-seconds: 15

varo:
  # the prefix of the messages of this game type, e.g. "<dark_gray>[<green>Varo<dark_gray>]" (empty: the prefix above)
  prefix: ""
  min-players: 2
  max-players: 100
  team-size: 2
  # seconds from /sg game <arena> start until the game begins
  start-countdown: 60
  spawn-circle-radius: 30
  # minutes every player may play per day
  play-time: 15
  # the hour (0-23) a new day starts - the play time is reset then
  day-start-hour: 0
  # the times of the day the game can be played at (empty: always), e.g. [ "18:00-20:00" ] or for some days of the
  # week [ "mon-fri 18:00-20:00", "sat,sun 14:00-22:00" ] - outside of them nobody can join and everybody in the game
  # leaves it (server time, "22:00-02:00" ends on the next day)
  play-hours: [ ]
  # seconds without damage after joining (0: none)
  join-protection: 10
  # the play time doesn't run out while an enemy is this close (blocks, 0: always runs out) - you can't log out of a fight
  combat-radius: 20
  # a villager stands in for a player who leaves the server for ... seconds (0: none) - whoever kills it kills the
  # player, damage it takes stays when he comes back
  offline-npc-seconds: 60
  friendly-fire: false
  # players who are out of the game can watch (otherwise they can't join anymore)
  spectators: true
  # fireworks for the winners
  fireworks: true
  # players make progress in their advancements while they are in the game
  advancements: false
  # what happens at the 1st, 2nd, 3rd, ... strike of an admin (/sg game <arena> strike): coordinates (the position
  # of the player is announced), inventory (his inventory in the game is cleared), out (he is out of the game),
  # warning (nothing else) - strikes beyond the list are only warnings
  strikes: [ coordinates, inventory, out ]
  # no PvP during the first ... days of the game (0: PvP from the start)
  peaceful-days: 0
  # players who haven't played for ... days in a row are out of the game (0: never)
  inactive-days: 0
  # from day ... on the positions of all players alive are announced at the start of every day (0: never)
  coordinates-from-day: 0
  # the world and the game are saved as backups/<arena>/<day>.zip in the plugin folder when the game begins and
  # every day - the newest ... are kept (0: no backups)
  backups: 7
  world-border:
    # the size (blocks) of the world border when the game starts around the center (0: no border)
    size: 2000
    # blocks the border shrinks every day (within 10 minutes after the new day begins)
    shrink-per-day: 100
    # the border doesn't get smaller than this
    min-size: 200
    # damage per second for every block outside of the border (2 = one heart), starting ... blocks outside of it
    damage: 0.2
    buffer: 5

# a round in a newly generated world (/sg arena create <name> --type uhc): no loot, health doesn't come back by itself,
# the teams start at random places and the world border pushes everybody into the center
uhc:
  # the prefix of the messages of this game type, e.g. "<dark_gray>[<red>UHC<dark_gray>]" (empty: the prefix above)
  prefix: ""
  min-players: 2
  max-players: 40
  # players per team (1: everybody plays alone)
  team-size: 1
  # the lobby countdown starts once min-players are in the lobby (seconds)
  lobby-countdown: 60
  # the lobby countdown is shortened to this once the game is full
  full-countdown: 10
  # seconds the players stand frozen on their places before the game begins
  start-countdown: 10
  # seconds without PvP after the start
  grace-period: 600
  # members of the same team can hurt each other
  friendly-fire: false
  # players who are out of the game watch the rest (otherwise they leave) - others can watch with /sg spectate
  spectators: true
  monsters: true
  # the time of day (-1: day and night change, 6000: always noon)
  time: -1
  # players make progress in their advancements while they are in the game
  advancements: false
  # players can break and place every block
  building: true
  # health comes back by itself (otherwise only with golden apples, golden heads, potions and the final heal)
  natural-regeneration: false
  # a player who dies drops his head - 8 gold ingots around it make a golden head (heals longer than a golden apple)
  golden-heads: true
  # everybody alive gets full health and food ... minutes after the start (0: never)
  final-heal: 10
  # the hearts of every player in the tab list
  health-in-tab: true
  # the teams start at random places inside the world border, at least ... blocks apart (less if there is no room)
  scatter-distance: 100
  # the world inside the border is generated while players wait in the lobby (less lag in the game), not before
  # somebody joins (on a game server of a network right away)
  pregenerate: true
  # cutclean: ores and meat drop smelted, timber: the whole tree falls when a log is broken
  scenarios: [ cutclean, timber ]
  world-border:
    # the size (blocks) of the world border around the center (0: none) - with per-team the largest size
    size: 1000
    # the world grows with the players: min-size plus per-team blocks for every team (per-team 0: always size)
    per-team: 100
    min-size: 300
    # the border starts shrinking ... minutes after the start and is final-size blocks wide after shrink-minutes -
    # everybody is warned a minute before
    shrink-after: 20
    shrink-minutes: 20
    final-size: 100
    # damage per second for every block outside of the border (2 = one heart), starting ... blocks outside of it
    damage: 1.0
    buffer: 0
  deathmatch:
    # the deathmatch starts after ... minutes or once only ... players are left (0: never) - everybody is teleported
    # into a circle around the center
    minutes: 0
    players: 0
    warning: 30
    border-size: 100
    final-border-size: 20
    border-minutes: 5
  # lightnings (without damage) show where every player alive is: every interval seconds after ... minutes or once
  # only ... players are left (0: never)
  reveal:
    minutes: 0
    players: 0
    interval: 60
  # fireworks for the winners
  fireworks: true
  # seconds after the end until the next round (everybody leaves the arena)
  ending-seconds: 15

# two players (or two teams) with the same kit on a small map with 2 spawn points (/sg arena create <name> --type
# duels): /sg duel waits for an opponent, /sg duel <player> [kit] challenges somebody
duels:
  # the prefix of the messages of this game type, e.g. "<dark_gray>[<aqua>Duels<dark_gray>]" (empty: the prefix above)
  prefix: ""
  min-players: 2
  max-players: 2
  # players per team (2 with max-players 4: 2 vs 2)
  team-size: 1
  # the kit everybody gets (/sg kit create <name>) - a challenge can choose another one, empty: none
  kit: ""
  # seconds a challenge can be accepted
  invite-seconds: 60
  lobby-countdown: 5
  full-countdown: 5
  # seconds the players stand frozen on their spawn points before the duel begins
  start-countdown: 3
  grace-period: 0
  friendly-fire: false
  # players who are out watch the rest (otherwise they leave) - others can watch with /sg spectate
  spectators: true
  monsters: false
  # the time of day (fixed, 6000: noon)
  time: 6000
  advancements: false
  # players can break and place every block (otherwise only the blocks below and the ones placed in the game)
  building: false
  breakable-blocks: [ cobweb ]
  placeable-blocks: [ cobweb ]
  world-border:
    # the size (blocks) of the world border around the center (0: none)
    size: 0
  # fireworks for the winner
  fireworks: true
  # seconds after the end until the arena is free again (everybody leaves it)
  ending-seconds: 5

# games: the game types the module is used in (survival-games, varo, uhc, duels)
modules:
  inventory-view:
    # who was killed can look at the inventory, armor, health and effects of the killer (a clickable message), the
    # killer at those of the victim and at the end everybody at those of the winners
    enabled: true
    games: [ survival-games, varo, uhc, duels ]
  kits:
    # the players choose a kit in the lobby and get it when the game begins - admins save their inventory as kit
    # (/sg kit create <name> [--permission]), kits with a permission need sg.kit.<name>
    enabled: true
    games: [ survival-games ]
    # the kit of players who didn't choose one (empty: none)
    default: ""
  bounty:
    # players put money (economy plugin via Vault) on a player alive: /sg bounty <player> <amount> - whoever kills him
    # gets all of it, otherwise (he dies otherwise or wins, the round is stopped) it is paid back
    enabled: true
    games: [ survival-games, varo, uhc ]
    min: 10
    # the highest bounty a player can put on somebody at once (0: no limit)
    max: 0
  restrictions:
    # rules for items: banned items can't be crafted, picked up or used and are taken away, banned potions can't be
    # brewed or drunk (strength also bans strong_strength and long_strength), enchantments are lowered to their limit
    # (0: banned) - e.g. banned-items: [ totem_of_undying, end_crystal ], max-enchantments: { sharpness: 3 }
    enabled: true
    games: [ varo ]
    banned-items: [ ]
    banned-potions: [ ]
    max-enchantments: { }
  sponsor:
    # spectators (also players who are out) send items to the players alive and pay with the money of an economy
    # plugin (Vault): /sg sponsor - item like in /give, amount, price (0: free)
    enabled: true
    games: [ survival-games ]
    # seconds between two items of the same spectator
    cooldown: 30
    items:
      - { item: cooked_beef, amount: 4, price: 10 }
      - { item: arrow, amount: 16, price: 20 }
      - { item: golden_apple, price: 50 }
      - { item: "splash_potion[potion_contents={potion:\"healing\"}]", price: 40 }
      - { item: iron_chestplate, price: 80 }
      - { item: ender_pearl, price: 60 }
  backpack:
    # a crafted backpack (leather around a chest, a diamond at the bottom)
    enabled: true
    games: [ varo ]
    # team: the team shares one backpack, player: everybody has their own
    type: team
    # rows of the backpack (1-6)
    rows: 3
  chest-lock:
    # a sign with [Lock] in the first line on a chest (barrel, furnace, ...) locks it for the own team
    enabled: true
    games: [ varo ]
  gravity-grenade:
    # crafted from a snowball, TNT and an ender pearl: tears out the blocks where it lands and pulls them and the
    # players nearby into one point (radius in blocks, 1-8)
    enabled: true
    games: [ varo, survival-games ]
    radius: 6
  tracker:
    # a compass that points at the nearest enemy (holding it shows his name and distance) - Survival Games: everybody
    # alive gets one when the grace period is over, Varo: on the spawn point
    enabled: true
    games: [ survival-games ]
  supply-drop:
    # every ... minutes a chest with the supply loot of loot.yml lands at a random place near the center, announced
    # with its coordinates (not in the deathmatch)
    enabled: true
    games: [ survival-games ]
    minutes: 4
    # seconds between the announcement and the landing
    warning: 20
    # the greatest distance from the center (blocks, always inside the world border)
    radius: 100
  toxic-rain:
    # some rains hurt everybody under the open sky (never kills)
    enabled: true
    games: [ varo ]
    # chance (percent) that a rain is toxic
    chance: 30
    # damage every 2 seconds (2 = one heart)
    damage: 1.0
  cosmetics:
    # the players choose an effect for their kills, a trail for their arrows and an effect for their wins
    # (/sg cosmetics) - kept with the statistics (stats.enabled), so a MySQL database shares them in a network
    enabled: true
    games: [ survival-games, varo, uhc, duels ]
    # how a cosmetic is unlocked: free, a price (money of an economy plugin), achievement:<achievement> or permission
    # (only with the permission) - the permission sg.cosmetic.<name> (sg.cosmetic.* for all) always unlocks it
    unlock:
      blood: free
      hearts: 250
      firework: 500
      lightning: 1000
      souls: achievement:hunter
      explosion: achievement:unstoppable
      flames: free
      notes: 250
      magic: 500
      soul-flames: 750
      stars: achievement:rampage
      flame-ring: 500
      music: 750
      totem: achievement:first_win
      starfall: achievement:champion
  betting:
    # spectators (also players who are out) bet money (economy plugin via Vault) on the winner: /sg bet <player>
    # <amount> bets on his team. The odds come from the Elo ratings of the teams alive (minus the margin of the house)
    # and stay as they were when the bet was placed - bets on the winners pay amount * odds, a draw or a stopped round
    # pays everything back (also the bets of a Varo when the server restarts)
    enabled: false
    games: [ survival-games, uhc ]
    min: 10
    # the highest bet at once (0: no limit)
    max: 0
    # the share of the house (0.1: the odds are 10 % lower than fair ones) and the highest odds
    margin: 0.1
    max-odds: 20
    # no more bets once only ... teams are left
    close-at: 2
  alliances:
    # in games where everybody plays alone: /sg ally <player> offers an alliance, the same command of the other player
    # accepts it - allies can't hurt each other and the tracker ignores them. /sg ally leave betrays the allies, all
    # alliances break once only break-at players are left (0: never), in the deathmatch or when nobody else is left
    enabled: false
    games: [ survival-games, uhc ]
    # players per alliance
    max-size: 2
    break-at: 3
  force-field:
    # the world border throws back what hits it: projectiles (arrows, tridents, ender pearls, ...) bounce off, players
    # who run into it get a shock (damage, 2 = one heart) and are pushed back
    enabled: false
    games: [ survival-games ]
    damage: 2.0
  fallen:
    # a cannon shot everybody in the game hears for every player who is out, every ... minutes (0: never, Varo: when
    # a new day begins) a list of the players who have fallen since the last one
    enabled: false
    games: [ survival-games, varo, uhc ]
    cannon: true
    minutes: 5
  training-score:
    # when the players stand on their spawn points everybody gets a training score from 1 to 12: 6 for the start
    # rating, one more (less) for every points-per-score rating points above (below) and up to +-random by chance
    enabled: false
    games: [ survival-games, uhc ]
    points-per-score: 50
    random: 1
  reaping:
    # more players than max-players can wait in the lobby (applicants * max-players), when the game starts max-players
    # of them are drawn - the others watch. Everybody has one lot, plus missed-lots for every reaping he wasn't drawn
    # in (until he is) and n - 1 with the permission sg.reaping.lots.<n> (2-10)
    enabled: false
    games: [ survival-games ]
    applicants: 2.0
    missed-lots: 1
  quell:
    # every ... rounds of an arena (0: never) or by chance (percent) a round is a Quell with one of the rules - a
    # rule changes settings of survival-games for that round. Admins choose the rule: /sg game <arena> quell <rule>
    enabled: false
    games: [ survival-games ]
    every: 25
    chance: 0
    # name: the settings of survival-games it changes (the description is the message quell_rule_<name>, otherwise
    # the name)
    rules:
      no-grace: { grace-period: 0 }
      nowhere-to-hide: { reveal: { minutes: 1, interval: 30 } }
      sudden-border: { world-border: { shrink-after: 1, shrink-minutes: 5 } }
      no-refill: { refill-minutes: 0 }
  arena-events:
    # the Gamemakers strike: every min-minutes to max-minutes (after the grace period, not in the deathmatch) the arena
    # turns against the players for duration seconds, announced warning seconds before - poison-water: the water
    # poisons, swarm: swarm-size mobs (swarm-mob) attack every player, fog: nobody sees far, heat-wave: hungry and slow
    # under the open sky. Admins start one: /sg game <arena> event <event>
    enabled: false
    games: [ survival-games ]
    min-minutes: 3
    max-minutes: 6
    warning: 10
    duration: 30
    events: [ poison-water, swarm, fog, heat-wave ]
    swarm-mob: silverfish
    swarm-size: 3

# posts what happens in the games to a Discord channel: create a webhook in the settings of the channel
# (Integrations > Webhooks) and paste its URL - or keep it out of this file with an environment variable:
# webhook-url: "${SG_DISCORD_WEBHOOK}"
discord:
  enabled: false
  webhook-url: ""
  # start, win, elimination, varo-day, strike, achievement, season
  events: [ start, win, varo-day, strike, season ]
  # the game types that are posted (survival-games, varo, uhc, duels)
  games: [ survival-games, varo, uhc ]
  # the name and picture of the messages (empty: those of the webhook)
  username: ""
  avatar-url: ""

# money of an economy plugin for every game type (needs Vault or VaultUnlocked and an economy plugin, e.g.
# EssentialsX), 0 = nothing
rewards:
  enabled: false
  kill: 5
  # every player of the winning team (also offline in a Varo)
  win: 50
  # every player who took part, at the end of the game
  game: 10
  # commands of the console ({player}, {uuid}, {arena}, {type}), also without an economy plugin - "[10s] ..." runs
  # the command 10 seconds later, e.g. "give {player} diamond 1"
  commands:
    kill: []
    win: []
    game: []

# 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 lobby (/sg join, join signs and NPCs)
  join-together: true
  # parties play in the same team (with team-size > 1) - in the team a member chose, otherwise in a team with room
  # for all of them
  same-team: true

# join NPCs of Citizens or FancyNpcs (/sg 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

# the games are recorded and can be watched again (/sg replay): the players, their items, the blocks they change and
# the messages of the game - in a copy of the map, with pause, speed and jumps (permission sg.replay)
replays:
  enabled: true
  # the game types that are recorded - a Varo gets one recording per day and is played in the backup of the world from
  # the beginning of that day (varo.backups, they have to be kept at least as long as the recordings); while a Varo
  # is running only admins (sg.admin) can watch its recordings
  games:
    - survival-games
    - varo
    - uhc
    - duels
  # the newest recordings that are kept per arena (plugins/SurvivalGames/replays), 0: all of them
  keep: 10
  # the replays that can be watched at the same time - every one has its own world
  max-playbacks: 2

# checks GitHub for new versions of SurvivalGames (at the start and every 6 hours) and tells the console and the
# admins (sg.admin) every time they join - only the list of releases is requested, nothing is sent about the server
# (the anonymous statistics of bStats are disabled in plugins/bStats/config.yml)
update-checker:
  enabled: true

# anonymous error reports to Sentry, so bugs of SurvivalGames get fixed: only errors in the code of SurvivalGames,
# 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
  # attaches the settings of this file that differ from the defaults, so the error can be reproduced with the same
  # settings; passwords, webhooks, database and server addresses, uuids and player names are removed first
  include-config: true
  # reports where the plugin blocks the server thread for this many milliseconds (lag spikes, freezes), 0: off
  lag-threshold: 1000

# writes AGENTS.md and CLAUDE.md into this folder: notes for AI assistants (Claude Code, Codex, Cursor, ...) that help
# to configure the plugin - which files they may change, that they mustn't invent options, ... (the plugin itself
# doesn't use any AI). false: the files are not written (delete them yourself)
agent-files: true

Loot

loot.yml decides what is in the chests, trapped chests and barrels of Survival Games. Every container gets items.min to items.max random items when it is opened for the first time and again after every refill.

  • Tables: normal, center and supply are lists of items; add as many lists of your own as you like. item is written like in /give (also with components: "potion[potion_contents={potion:\"healing\"}]"), amount is a number or a range (1-3), weight says how often the item is chosen compared to the others.
  • containers gives every kind of container its table, e.g. barrel: food.
  • center-radius: containers this close to the center of the arena get the center loot instead of the normal loot.
  • upgrades makes the loot better after refills: 2: { normal: center }: from the 2nd refill on the containers with normal loot get the center loot.
  • Supply drops get supply-items.min to supply-items.max items of the supply list.

When the plugin is updated, new options are added to your loot.yml, but entries you delete from containers and upgrades stay deleted.

# The loot of the chests, barrels and trapped chests in Survival Games and of the supply drops. Every container gets
# a random number of items (items.min to items.max) when it is opened the first time and again after every refill.
# item: like in /give (iron_sword, potion[potion_contents={potion:"healing"}], diamond_sword[enchantments={sharpness:1}])
# amount: a number or a range (1-3)
# weight: how often the item is chosen compared to the others (default 1)
# /sg reload after a change

items:
  min: 3
  max: 6

# containers this close to the center of the arena (blocks) get the center loot (0: only the normal loot)
center-radius: 25

# the loot table of every kind of container (chest, trapped_chest, barrel): normal, center, supply or a table of your
# own (a list of items like normal below) - the center loot only replaces the normal loot
containers:
  chest: normal
  barrel: normal
  trapped_chest: center

# better loot after refills: from the 2nd refill on the containers with normal loot get the center loot
# (<refills>: { <table>: <better table> })
upgrades:
  2: { normal: center }

normal:
  - { item: wooden_sword, weight: 8 }
  - { item: stone_sword, weight: 5 }
  - { item: wooden_axe, weight: 6 }
  - { item: stone_axe, weight: 4 }
  - { item: bow, weight: 3 }
  - { item: arrow, amount: 2-6, weight: 6 }
  - { item: fishing_rod, weight: 3 }
  - { item: leather_helmet, weight: 6 }
  - { item: leather_chestplate, weight: 5 }
  - { item: leather_leggings, weight: 5 }
  - { item: leather_boots, weight: 6 }
  - { item: golden_helmet, weight: 3 }
  - { item: golden_boots, weight: 3 }
  - { item: chainmail_chestplate, weight: 2 }
  - { item: chainmail_leggings, weight: 2 }
  - { item: apple, amount: 1-3, weight: 8 }
  - { item: bread, amount: 1-2, weight: 7 }
  - { item: cooked_porkchop, weight: 4 }
  - { item: cooked_chicken, weight: 4 }
  - { item: carrot, amount: 1-3, weight: 6 }
  - { item: baked_potato, amount: 1-2, weight: 5 }
  - { item: stick, amount: 1-2, weight: 6 }
  - { item: flint, weight: 4 }
  - { item: feather, amount: 1-2, weight: 4 }
  - { item: iron_ingot, weight: 3 }
  - { item: gold_ingot, weight: 3 }
  - { item: cobweb, amount: 1-2, weight: 3 }
  - { item: snowball, amount: 2-4, weight: 3 }
  - { item: experience_bottle, weight: 2 }

center:
  - { item: stone_sword, weight: 5 }
  - { item: iron_sword, weight: 3 }
  - { item: iron_axe, weight: 2 }
  - { item: bow, weight: 4 }
  - { item: arrow, amount: 4-10, weight: 6 }
  - { item: crossbow, weight: 1 }
  - { item: iron_helmet, weight: 3 }
  - { item: iron_chestplate, weight: 2 }
  - { item: iron_leggings, weight: 2 }
  - { item: iron_boots, weight: 3 }
  - { item: chainmail_chestplate, weight: 3 }
  - { item: chainmail_leggings, weight: 3 }
  - { item: golden_apple, weight: 2 }
  - { item: cooked_beef, amount: 1-3, weight: 6 }
  - { item: bread, amount: 2-3, weight: 5 }
  - { item: iron_ingot, amount: 1-2, weight: 5 }
  - { item: diamond, weight: 1 }
  - { item: flint_and_steel, weight: 2 }
  - { item: tnt, weight: 2 }
  - { item: ender_pearl, weight: 1 }
  - { item: experience_bottle, amount: 1-3, weight: 3 }
  - { item: "splash_potion[potion_contents={potion:\"healing\"}]", weight: 2 }
  - { item: "potion[potion_contents={potion:\"swiftness\"}]", weight: 2 }

# the chests of the supply drops (modules.supply-drop in config.yml): number of items and the loot
supply-items:
  min: 5
  max: 8

supply:
  - { item: iron_sword, weight: 4 }
  - { item: diamond_sword, weight: 1 }
  - { item: diamond_axe, weight: 1 }
  - { item: bow, weight: 3 }
  - { item: "bow[enchantments={power:1}]", weight: 2 }
  - { item: arrow, amount: 8-16, weight: 5 }
  - { item: iron_helmet, weight: 3 }
  - { item: iron_chestplate, weight: 3 }
  - { item: iron_leggings, weight: 3 }
  - { item: iron_boots, weight: 3 }
  - { item: diamond_helmet, weight: 1 }
  - { item: diamond_boots, weight: 1 }
  - { item: golden_apple, amount: 1-2, weight: 4 }
  - { item: cooked_beef, amount: 2-4, weight: 4 }
  - { item: ender_pearl, amount: 1-2, weight: 2 }
  - { item: experience_bottle, amount: 2-4, weight: 3 }
  - { item: "splash_potion[potion_contents={potion:\"healing\"}]", weight: 3 }
  - { item: "potion[potion_contents={potion:\"strength\"}]", weight: 1 }