On this page
Configuration
Everything is in plugins/GankGuard/config.yml, with a comment over every setting. After a change, run /gankguard reload. If the file has a mistake that YAML cannot read, the reload says so and the settings in use stay until you fix it. Settings marked (Pro) need a GankGuard Pro key; on Free they are skipped.
Only damage and deaths caused by players count. A player is behind the damage when they hit, shot the arrow, trident or potion, lit the TNT, own the tamed wolf, set off the end crystal or set the victim on fire with their weapon. Mobs, falls, lava and the rest are never touched, even with a player nearby.
Worlds #
worlds:
mode: except
list: []
With mode: except, GankGuard works in every world except the ones in list; with mode: only, only in them. A * stands for any text, so arena_* is arena_1, arena_red and so on, and upper and lower case don't matter. /gankguard world add <world> and /gankguard world remove <world> change the list for you, keeping the comments of the file.
Spawn protection #
protection:
seconds: 10
seconds-after-gank: 20
ends-when-attacking: true
on-join: true
on-teleport: false
on-portal: false
not-after-combat-seconds: 30
action-bar: true
| Setting | What it does |
|---|---|
seconds | For how long other players can't hurt a player who just respawned. 0: no protection after an ordinary respawn. |
seconds-after-gank | The protection after a spawn kill or a harassment kill, so the victim can get away. Never shorter than seconds; with both at 0 there is no spawn protection at all. |
ends-when-attacking | The protection ends as soon as the protected player hurts another player. |
on-join | (Pro) Joining the server counts as spawning. |
on-teleport | (Pro) So do teleports of more than 8 blocks made by commands or plugins: /spawn, /home, /tpa and the like. |
on-portal | (Pro) So does going through a Nether or End portal. |
not-after-combat-seconds | No protection on joining, teleporting or going through a portal for a player who fought another player in the last this many seconds, so it can't be used to get out of a fight. |
action-bar | The countdown above the hotbar of the protected player. |
Respawning after a death always counts as spawning. A player whose hit is stopped sees why above their hotbar, and for how long.
Spawn kills #
spawn-kill:
enabled: true
seconds: 30
radius: 24
victim-keeps-items: true
A spawn kill is a player killed by another player within seconds of spawning and radius blocks of where they spawned (radius: 0 is any distance). It doesn't count when the victim had already hurt a player since spawning. With victim-keeps-items, the victim keeps their items and levels, so whoever camps the spawn gets no loot.
Harassment #
harassment:
enabled: true
kills: 3
minutes: 10
victim-keeps-items: true
shield-minutes: 15
Harassment is the same player killing the same victim kills times within minutes. From that kill on, with victim-keeps-items, the victim keeps their items and levels, and for shield-minutes that killer can't hurt them (0 turns the shield off). The shield ends early if the victim attacks that killer.
ignore-provoked: true
With ignore-provoked, a kill counts neither as a spawn kill nor as harassment when the victim started the fight, that is, hit the killer first. A fight ends after 30 seconds with no hits between the two.
Strikes #
Each spawn kill or harassment kill gives the killer a strike, forgotten after forget-after-minutes. When the killer reaches the strikes of a step, that step happens; with a number of strikes that has no step, the closest step below it happens.
strikes:
forget-after-minutes: 60
warn-killer: true
steps:
2:
alert-staff: true
3:
alert-staff: true
pvp-block-minutes: 10
5:
alert-staff: true
pvp-block-minutes: 30
commands:
- "kick {killer} Spawn killing is not allowed here"
| Setting | What it does |
|---|---|
forget-after-minutes | How long a strike lasts. |
warn-killer | The killer is told about each strike. |
alert-staff | The step tells the players with gankguard.notify and the console who killed whom, and where. |
pvp-block-minutes | (Pro) For this many minutes the killer can't hurt any player. |
commands | (Pro) Console commands, run in order. {killer}, {victim}, {strikes} and {world} are filled in. |
The first strike of the example only warns the killer. commands is commented out in the config.yml that GankGuard writes: remove the # to use it. /gankguard check <player> shows a player's strikes and /gankguard pardon <player> clears them.
The log (Pro) #
log:
enabled: true
max-megabytes: 5
With Pro, every death caused by a player is written to kills.log, in plugins/GankGuard/: the time, the world and the coordinates, the killer, the victim, and whether it was a spawn kill, harassment or a fight the victim started. /gankguard log shows its last 2,000 lines, newest first. When the file reaches max-megabytes it starts over, and the previous one stays as kills.old.log.
Other settings #
| Setting | What it does |
|---|---|
language | en or es: the language of the plugin's messages. They live in messages_en.yml and messages_es.yml, yours to edit; a message set to "" is not sent. |
credit-seconds | A death counts as caused by a player when the game credits a player for it, or when a player hurt the victim in the last this many seconds. |
banner | true draws the GankGuard banner in the console at start; false prints one line. |
updates.check | Once a day, asks Modrinth for a new version and tells the console and admins. |
updates.download | Also downloads it into the server's update folder; the server puts it in place at its next restart. |
license.key | Your Pro key. /gankguard license activate <key> writes it here for you. |
telemetry.enabled | The anonymous usage report; false turns it off. /gankguard telemetry shows what it sends. |
Permissions #
| Permission | Default | What it gives |
|---|---|---|
gankguard.admin | operators | Every command, and the message about new versions when joining. |
gankguard.notify | operators | The staff alerts of the strike steps. |
gankguard.bypass | nobody | GankGuard never stops this player's hits and never counts their kills, for events or staff. |