/dcombat
Reload DCombat, check who is in combat, or switch safe zone walls
/dcombat reload/dcombat list/dcombat tag [player] [seconds]/dcombat wall [zone] [on|off]
Combat tagging. A player who hits or gets hit is tagged for 15 seconds, and while tagged cannot run teleport commands, enter safe zones or log out without losing their items.
Main commands
/dcombat reload/dcombat reload/dcombat tag/dcombat tag Alex 30/dcombat list/dcombat wall/dcombat wall spawn onWhat happens when a player logs out in combat?
With kill-on-logout on, which is the default, they are killed. Turn on combat-log-body to leave a zombie holding their items for a short time instead.
Does hitting a mob tag a player?
No. Tags come from fights between players. A hit through a pet also counts while tag-through-pets is on.
Who is never tagged?
Players in creative mode and vanished staff, as set under no-tag-from, and anyone with dcombat.bypass.
Who can use /dcombat?
Only players with dcombat.admin, which operators have by default.
Menus and messages come from the default DCombat files. Run a command, click an example, or pick a menu.
This plugin works through commands and chat. Try one below.
<name> you must fill in[name] optionalword typed as shown
Reload DCombat, check who is in combat, or switch safe zone walls
/dcombat reload/dcombat list/dcombat tag [player] [seconds]/dcombat wall [zone] [on|off]Who has each one before you set anything up is in the middle column.
| Permission | Default | Grants |
|---|---|---|
| dcombat.bypass.zones | Nobody | Walk into a safe zone even while combat tagged |
| dcombat.admin | Operators | Reload DCombat, list who is in combat and switch safe zone walls |
| dcombat.bypass | Nobody | Never gets tagged, and also holds every other dcombat.bypass.* permission - for staff who have to break up a fight |
| dcombat.bypass.commands | Nobody | May use the blocked commands while tagged |
| dcombat.bypass.logout | Nobody | Leaving while tagged does not kill this player |
| dcombat.bypass.limits | Nobody | The ender pearl, elytra and riptide limits do not apply while tagged |
plugins/DCombat/aliases.yml
'dcombat.bypass.zones''dcombat.bypass.commands''dcombat.bypass.logout'permissions:'dcombat.zones.bypass': 'dcombat.bypass.zones''dcombat.bypass-commands': 'dcombat.bypass.commands''dcombat.bypass-logout': 'dcombat.bypass.logout'
plugins/DCombat/settings.yml
Combat tagging: when two players fight, both are "in combat" for a while and cannot escape. Edit, then run /dcombat reload. A setting you delete comes back with its default. While tagged, escape commands are refused and quitting kills you. Damage from mobs never tags anyone.
ENLanguage of the plugin's texts.
EN = English FR = French ES = Spanish
'&#FF5C5C&lCOMBAT &8| 'Text shown in front of every chat message from this plugin. Use '' for no prefix. & colour codes and &#RRGGBB work.
15--- Combat rules --- How long a fight lasts, in seconds, after the last hit. Every new hit starts the time over. Example: 15 = you stay tagged for 15 seconds after the last hit. A short time (10-15) makes it easier to get away. A long time (20-30) makes it harder to run from a fight.
trueWhat happens when a player logs out while in combat?
true = they are killed and drop their items, so nobody can escape a fight by quitting. false = nothing happens.
A server shutdown or restart never counts as quitting.
A body that stands in for a player who logs out while tagged. It only works while kill-on-logout is true. When it is on, instead of being killed on the spot the player leaves a body behind that holds their whole inventory and experience. Anyone can kill the body: it then drops everything and the player dies when they next join. If nobody kills it, the body disappears after the time below and the player gets everything back the next time they join. The items are only ever in one place: your players cannot lose them or duplicate them, not even if the server restarts in between. They are kept in plugins/DCombat/bodies, one small file per player, so do not delete that folder while players are waiting to get their items back. Players with dcombat.bypass.logout are never turned into a body. If the body cannot be saved for any reason, the normal logout kill happens instead and an error is written to the console.
falsetrue = turn it on, false = a tagged player who logs out is killed on the spot (default).
30How many seconds the body stays in the world. After that it vanishes and the items wait for the player. A short time makes it easy to wait out the body, a long time makes combat logging risky.
ZOMBIEThe kind of mob used as the body. It stands still and has no AI. It must be a mob that exists in your server version, for example ZOMBIE, VILLAGER or SKELETON. A wrong name is reported in the console and ZOMBIE is used instead.
20Health of the body. 20 is ten hearts, the same as a player.
'&#FF5C5C%player% &7(logged out)'The name floating over the body. The player's head is worn as a helmet. '' = no name. You can use: %player%
trueDoes a killed body drop experience, like a player who dies would?
7How many experience points a level is worth when the body drops experience, and the most it ever drops. These match what a dying player drops in vanilla Minecraft.
100Things a tagged player may not do. Nothing here is on by default.
falsetrue = the limits below apply to tagged players, false = nothing in this section does anything (default). Players with dcombat.bypass.limits are never limited.
truetrue = a tagged player cannot throw ender pearls. The pearl stays in their inventory.
0Only used when block is false: seconds a tagged player must wait between two pearls. 0 = no wait.
truetrue = a tagged player cannot start gliding, and stops gliding the moment they are tagged.
truetrue = a tagged player cannot launch themselves with a riptide trident.
falsetrue = a tagged player who can fly (a rank or plugin flight, not creative mode) is brought down the moment they are tagged and cannot fly again until the fight ends. They land without fall damage, and their flight comes back by itself when the tag runs out. false = flying players keep flying while tagged (default).
trueWhen a player dies in a fight, is the killer freed from combat at once?
true = yes, the killer can use /spawn and the like right away. false = the killer stays tagged until the time runs out, which stops "kill and run".
trueDoes a fight through a tamed pet (like a wolf) count?
true = yes, if your wolf bites a player, you are tagged. false = no, pets can attack without tagging anyone.
Hits that never start a fight, so staff who are testing something do not lock players out of /spawn and /home. true = a hit from this kind of player tags nobody. false = it tags like a normal hit.
truePlayers in creative mode.
truePlayers who are vanished.
[]Worlds where nobody is ever tagged, written as world names. Example: [creative, events] Do not list the world that holds your spawn: spawn protection already stops fights there, and listing it would also switch off the PvP ring around it.
--- Blocked commands --- Commands a tagged player cannot use, written without the slash. The version with a plugin name in front (like dtpa:tpa) is blocked too. Only commands the player types are checked. To block more, add a line. To allow one in combat, delete its line.
--- Ender pearls --- What a pearl does to someone who is already in combat. A pearl never starts a fight by itself. Players with the permission dcombat.bypass are never tagged.
falseDoes throwing a pearl while tagged restart the combat time?
true = yes, so pearling away does not shorten the fight. false = no, the time keeps running down (default).
0Seconds the combat time restarts to when a pearl is thrown (only used if refresh-tag is true). 0 = use duration-seconds. A pearl can make the time longer, never shorter.
--- Blocked teleports --- Teleports that are refused while tagged, listed by what caused them. This also catches plugins that teleport a player without a command. The causes you can list:
PLUGIN = another plugin moved the player COMMAND = a teleport command such as /tp ENDER_PEARL = an ender pearl landing CHORUS_FRUIT = eating a chorus fruit END_PORTAL, NETHER_PORTAL, END_GATEWAY = walking through that portal SPECTATE = teleporting to a player in spectator mode UNKNOWN = anything else
Pearls and chorus fruit are not listed by default because that is how a normal fight moves. Add them if you want to stop those too.
'&#FF5C5C🗡 &7Combat: &#FF5C5C&l%seconds%s'--- Action bar --- The text above the hotbar while in combat. '' = no text. You can use: %seconds% (time left) %player% (the opponent) %bar% (a bar that empties, set below)
What %bar% looks like in the action bar text.
10How many pieces the bar has.
'&#FF5C5C■'One piece that is still full (time left).
'&8■'One piece that has run out.
--- Combat boss bar --- A countdown bar at the top of the screen. It empties as the combat time runs out. Other plugins that show ping or TPS can overwrite the action bar, so the boss bar stays readable.
trueShow the boss bar while in combat?
'&#FF5C5C⚔ &fCombat &#FF5C5C%seconds%s'Text above the bar. You can use: %seconds% (time left) %player% (the opponent)
'RED'Colour of the bar. One of:
PINK, GREEN, BLUE, PURPLE, WHITE, YELLOW, RED
'SOLID'Shape of the bar. One of:
SOLID = one smooth bar SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20 = a bar cut into that many pieces
--- Sounds --- One entry per event. Each has three values:
sound = any Minecraft sound name (the names /playsound suggests). '' turns that sound off. volume = 1.0 is normal, lower is quieter. pitch = 1.0 is normal, higher is sharper, lower is deeper.
You got tagged.
entity.wither.spawn0.31.8The fight ended (the timer ran out or someone died).
entity.experience_orb.pickup0.51.4A command or teleport was refused.
entity.villager.no1.01.0You pushed against a safe zone wall for too long.
entity.elder_guardian.curse0.61.4--- Safe zones --- Areas, like spawn, that a player in combat cannot enter. This works on foot and by teleporting. A player who is already inside when the fight starts may stay, but cannot go deeper. A zone can come from three places: the spawn area, WorldGuard regions, or boxes you define here.
trueIs the spawn area from the DSpawn plugin a safe zone? Does nothing without DSpawn. In the wall list below it is called `spawn`.
[]WorldGuard regions that are safe zones, written as region names. Only used if WorldGuard is installed. Example:
worldguard-regions:
- spawn
- safezone{}Your own box-shaped safe zones. Give two opposite corners (x1 y1 z1 and x2 y2 z2), in any order. The name (here `market`) is what you use in the wall list below. Example:
zones:
market:
world: world
x1: -40
y1: 60
z1: -40
x2: 40
y2: 120
z2: 40everyoneCan players throw ender pearls INTO a safe zone (like spawn)?
everyone = nobody can. The pearl stops at the edge and the thrower sees a wall. combat = only players in combat are stopped. Everyone else can pearl in. off = pearls fly freely; only a player in combat who LANDS inside is stopped.
Pearls thrown from inside a safe zone always work.
trueCan a player in combat pearl "around" a safe zone, past a corner, along an edge or over the top?
true = no, those shortcuts are blocked too. false = they are allowed.
landWhat happens when a blocked pearl reaches the wall.
land = it hits the wall like a real block: it bursts there and the thrower lands just outside the wall,
taking the normal pearl damage. The throw is not wasted, and nobody gets inside.
break = it bursts at the wall and nobody moves.If there is no room to stand at that spot (inside a block), the pearl breaks instead.
The warning wall shown to a player who throws a pearl toward a safe zone. Only the thrower sees it. The block it is made of comes from the `wall:` section below, and the zone must be listed in wall.zones.
20How far ahead, in ticks, the pearl's flight is predicted (20 = 1 second). A bigger number shows the wall earlier but costs a little more.
20How wide the wall is, in blocks, to each side of the player. Maximum 32. Bigger than the normal wall so that it is easy to see.
10How many blocks the wall reaches above the player.
6How many blocks the wall reaches below the player.
4How many seconds the wall stays visible.
trueWhat happens if a player in a safe zone gets tagged (for example hit by an arrow from outside)?
true = they are moved just outside the zone. false = they can stay but cannot go deeper.
Players with the bypass permission, creative players and spectators are never moved.
Fast movers (elytra, riptide trident, riding, or faster than about 0.6 blocks per tick) are watched on every move, so they cannot skip past the wall. The wall appears where their path would cross a zone edge. Entering a zone is always refused, whatever the speed.
12How far ahead, in ticks, the path is predicted (20 = 1 second).
2The wall can appear this many blocks away from the edge. Example: 2.
'dcombat.bypass.zones'Players with this permission can enter safe zones while in combat. Only operators have it by default. The old name dcombat.zones.bypass still works too.
--- The wall --- When a player in combat gets close to a safe zone edge, a wall of blocks appears there. Only that player sees it and no real block is placed. A wall also appears over the top or under the bottom of a zone when needed. Entering the zone is blocked with or without the wall.
Which zones always show a wall when a player in combat comes near. The warning wall for pearls and fast movers shows for every zone anyway. Use `spawn`, the name of one of your boxes, or a WorldGuard region name. In game, /dcombat wall lists them, and /dcombat wall <zone> switches one on or off (it edits this list). Example:
zones:
- spawn
- market'red_stained_glass'The block the wall is made of. Any block works, and you can add a state if you like: 'red_stained_glass_pane[east=true,west=true]'. An unknown name becomes red_stained_glass.
12How far around the player the wall is built, in blocks (maximum 32 each). A bigger wall is visible from further away but costs more.
radius = sideways, above = blocks over the feet, below = blocks under the feet.
842400The most wall blocks shown to one player at a time, so a big radius cannot overload their connection.
trueWhich blocks may the wall replace?
true = only air, grass, flowers and similar, so it never hides a real wall or door. false = it paints over solid blocks too.
1Seconds between re-sending the wall to the player while they are near it. Lower fixes gaps faster, higher sends less. 0 = only when they move.
What happens when a player in combat keeps pushing against the wall.
5Seconds of touching before the punishment fires. It starts over after each time. 0 turns all of `touch` off.
0.25How close to the wall counts as touching, in blocks (0.01 to 1). 0.25 = right up against it.
Potion effects given each time it fires. Each effect has:
type = the effect name seconds = how long it lasts level = 1 for normal, 2 for level II
`particles` and `icon` are optional and default to true. Use [] for no effects.
3121falseRun the commands below each time it fires? Off until you set true.
Commands to run. You can use: %player% A line starting with `player:` runs as the player. Anything else (or `console:`) runs from the console with full rights, so be careful.
Chat messages. & colour codes and &#RRGGBB work. '' sends nothing where noted. The %words% in a message are filled in by the plugin.
'&#FF5C5CYou are not allowed to do that.'''Sent when you are first tagged. You can use: %player% (opponent) %seconds%. Empty = nothing.
''Sent when your tag runs out or your opponent dies. Empty = nothing.
'&#FF5C5CYou cannot use &f/%command% &#FF5C5Cin combat! &7(%seconds%s left)'You can use: %command% %seconds%
'&#FF5C5CYou cannot teleport in combat! &7(%seconds%s left)'You can use: %seconds%
'&#FF5C5C%player% &#FF5C5Clogged out in combat!'Shown to everyone. You can use: %player%
'GF521Reloaded - combat lasts &f%seconds%sGF521.'You can use: %seconds%
'&f%count% &#FF5C5Cin combat: &f%players%'You can use: %count% %players%
'&7Nobody is in combat right now.''&7Usage: &f/dcombat <reload|list|tag [player] [seconds]|wall [zone] [on|off]>''&7Tagged &f%player% &7for &#FF5C5C%seconds%s&7.'Reply to /dcombat tag, which tags a player by hand for testing. You can use: %player% %seconds%
'&#FF5C5C%player% is not online.''&#FF5C5CYou cannot enter a safe zone while in combat.'Shown when a tagged player walks into a safe zone.
'&#FF5C5CYour pearl cannot enter a safe zone.'Shown when a pearl is stopped at a safe zone. Empty = nothing.
'&#FF5C5CYou were moved out of the safe zone because you are in combat.'Shown when a tagged player is moved out of a safe zone. Empty = nothing.
'&#FF5C5CStay away from the safe zone while you are in combat.'Sent after touching the wall for `touch.seconds`. Empty = nothing.
'&7Walls: %zones%'Replies to /dcombat wall (admins only). wall-list is one line listing every zone. Each zone is written with wall-list-on (wall on) or wall-list-off (wall off), and the zones are joined with wall-list-separator. You can use: %zones% (in wall-list) %zone% (in the others)
'GF521%zone%''&8%zone%''&7, ''&7There are no safe zones set up, so there is nothing to put a wall around.''&#FF5C5CThere is no safe zone called %zone%.''GF521The wall around %zone% is on.''GF521The wall around %zone% is off.''&#FF5C5Csettings.yml has a YAML error, so nothing was changed. Fix the file and reload first.''&7You killed the body of &f%player%&7.'Shown to the player who killed a combat log body. %player% is the player who logged out. '' = no message.
'DFFB0You logged out in combat. Your items have been returned.'Shown when a player joins and gets their items back from a body that was not killed. '' = no message.
'&#FF4D6DYou logged out in combat and your body was killed.'Shown when a player joins after their body was killed. They die right after. '' = no message.
'&#FF5C5CYou cannot use ender pearls in combat! &7(%seconds%s left)'Shown when a tagged player tries something that tag-limits forbids. %seconds% is the tag time left.
'&#FF5C5CWait %seconds%s before throwing another ender pearl in combat.''&#FF5C5CYou cannot fly in combat! &7(%seconds%s left)''&#FF5C5CYou cannot use an elytra in combat! &7(%seconds%s left)''&#FF5C5CYou cannot use riptide in combat! &7(%seconds%s left)'# Combat tagging: when two players fight, both are "in combat" for a while and cannot escape.# Edit, then run /dcombat reload. A setting you delete comes back with its default.# While tagged, escape commands are refused and quitting kills you. Damage from mobs never tags anyone.# Used by updates. Do not edit.config-version: 3# Language of the plugin's texts.# EN = English# FR = French# ES = Spanishlanguage: EN# Text shown in front of every chat message from this plugin.# Use '' for no prefix. & colour codes and &#RRGGBB work.prefix: '&#FF5C5C&lCOMBAT &8| '# --- Combat rules ---# How long a fight lasts, in seconds, after the last hit. Every new hit starts the time over.# Example: 15 = you stay tagged for 15 seconds after the last hit.# A short time (10-15) makes it easier to get away. A long time (20-30) makes it harder to run from a fight.duration-seconds: 15# What happens when a player logs out while in combat?# true = they are killed and drop their items, so nobody can escape a fight by quitting.# false = nothing happens.# A server shutdown or restart never counts as quitting.kill-on-logout: true# A body that stands in for a player who logs out while tagged. It only works while kill-on-logout is true.# When it is on, instead of being killed on the spot the player leaves a body behind that holds their whole# inventory and experience. Anyone can kill the body: it then drops everything and the player dies when they# next join. If nobody kills it, the body disappears after the time below and the player gets everything back# the next time they join. The items are only ever in one place: your players cannot lose them or duplicate them,# not even if the server restarts in between. They are kept in plugins/DCombat/bodies, one small file per# player, so do not delete that folder while players are waiting to get their items back.# Players with dcombat.bypass.logout are never turned into a body. If the body cannot be saved for any reason,# the normal logout kill happens instead and an error is written to the console.combat-log-body:# true = turn it on, false = a tagged player who logs out is killed on the spot (default).enabled: false# How many seconds the body stays in the world. After that it vanishes and the items wait for the player.# A short time makes it easy to wait out the body, a long time makes combat logging risky.seconds: 30# The kind of mob used as the body. It stands still and has no AI. It must be a mob that exists in your# server version, for example ZOMBIE, VILLAGER or SKELETON. A wrong name is reported in the console# and ZOMBIE is used instead.entity-type: ZOMBIE# Health of the body. 20 is ten hearts, the same as a player.health: 20# The name floating over the body. The player's head is worn as a helmet. '' = no name.# You can use: %player%name: '&#FF5C5C%player% &7(logged out)'# Does a killed body drop experience, like a player who dies would?drop-experience: true# How many experience points a level is worth when the body drops experience, and the most it ever drops.# These match what a dying player drops in vanilla Minecraft.experience-per-level: 7max-experience: 100# Things a tagged player may not do. Nothing here is on by default.tag-limits:# true = the limits below apply to tagged players, false = nothing in this section does anything (default).# Players with dcombat.bypass.limits are never limited.enabled: falseender-pearl:# true = a tagged player cannot throw ender pearls. The pearl stays in their inventory.block: true# Only used when block is false: seconds a tagged player must wait between two pearls. 0 = no wait.cooldown-seconds: 0elytra:# true = a tagged player cannot start gliding, and stops gliding the moment they are tagged.block: trueriptide:# true = a tagged player cannot launch themselves with a riptide trident.block: trueflight:# true = a tagged player who can fly (a rank or plugin flight, not creative mode) is brought down the moment they are# tagged and cannot fly again until the fight ends. They land without fall damage, and their flight comes back# by itself when the tag runs out. false = flying players keep flying while tagged (default).block: false# When a player dies in a fight, is the killer freed from combat at once?# true = yes, the killer can use /spawn and the like right away.# false = the killer stays tagged until the time runs out, which stops "kill and run".release-on-kill: true# Does a fight through a tamed pet (like a wolf) count?# true = yes, if your wolf bites a player, you are tagged.# false = no, pets can attack without tagging anyone.tag-through-pets: true# Hits that never start a fight, so staff who are testing something do not lock players out of /spawn and /home.# true = a hit from this kind of player tags nobody. false = it tags like a normal hit.no-tag-from:# Players in creative mode.creative: true# Players who are vanished.vanished: true# Worlds where nobody is ever tagged, written as world names.# Example: [creative, events]# Do not list the world that holds your spawn: spawn protection already stops fights there,# and listing it would also switch off the PvP ring around it.safe-worlds: []# --- Blocked commands ---# Commands a tagged player cannot use, written without the slash.# The version with a plugin name in front (like dtpa:tpa) is blocked too.# Only commands the player types are checked. To block more, add a line. To allow one in combat, delete its line.blocked-commands:- spawn- home- homes- sethome- warp- tpa- tpahere- tpaccept- tpauto- rtp- randomteleport- rtpqueue- duelqueue- shop- ah- auction- auctionhouse- orders- order- sell- sellmulti- pointshop- ps- crates- keys- kit- kits# --- Ender pearls ---# What a pearl does to someone who is already in combat. A pearl never starts a fight by itself.# Players with the permission dcombat.bypass are never tagged.ender-pearl:# Does throwing a pearl while tagged restart the combat time?# true = yes, so pearling away does not shorten the fight.# false = no, the time keeps running down (default).refresh-tag: false# Seconds the combat time restarts to when a pearl is thrown (only used if refresh-tag is true).# 0 = use duration-seconds. A pearl can make the time longer, never shorter.seconds: 0# --- Blocked teleports ---# Teleports that are refused while tagged, listed by what caused them. This also catches plugins# that teleport a player without a command.# The causes you can list:# PLUGIN = another plugin moved the player# COMMAND = a teleport command such as /tp# ENDER_PEARL = an ender pearl landing# CHORUS_FRUIT = eating a chorus fruit# END_PORTAL, NETHER_PORTAL, END_GATEWAY = walking through that portal# SPECTATE = teleporting to a player in spectator mode# UNKNOWN = anything else# Pearls and chorus fruit are not listed by default because that is how a normal fight moves.# Add them if you want to stop those too.blocked-teleport-causes:- PLUGIN- COMMAND# --- Action bar ---# The text above the hotbar while in combat. '' = no text.# You can use: %seconds% (time left) %player% (the opponent) %bar% (a bar that empties, set below)action-bar: '&#FF5C5C🗡 &7Combat: &#FF5C5C&l%seconds%s'# What %bar% looks like in the action bar text.action-bar-progress:# How many pieces the bar has.length: 10# One piece that is still full (time left).filled: '&#FF5C5C■'# One piece that has run out.empty: '&8■'# --- Combat boss bar ---# A countdown bar at the top of the screen. It empties as the combat time runs out.# Other plugins that show ping or TPS can overwrite the action bar, so the boss bar stays readable.boss-bar:# Show the boss bar while in combat?enabled: true# Text above the bar. You can use: %seconds% (time left) %player% (the opponent)title: '&#FF5C5C⚔ &fCombat &#FF5C5C%seconds%s'# Colour of the bar. One of:# PINK, GREEN, BLUE, PURPLE, WHITE, YELLOW, REDcolor: 'RED'# Shape of the bar. One of:# SOLID = one smooth bar# SEGMENTED_6, SEGMENTED_10, SEGMENTED_12, SEGMENTED_20 = a bar cut into that many piecesstyle: 'SOLID'# --- Sounds ---# One entry per event. Each has three values:# sound = any Minecraft sound name (the names /playsound suggests). '' turns that sound off.# volume = 1.0 is normal, lower is quieter.# pitch = 1.0 is normal, higher is sharper, lower is deeper.sounds:# You got tagged.entered:sound: entity.wither.spawnvolume: 0.3pitch: 1.8# The fight ended (the timer ran out or someone died).left:sound: entity.experience_orb.pickupvolume: 0.5pitch: 1.4# A command or teleport was refused.denied:sound: entity.villager.novolume: 1.0pitch: 1.0# You pushed against a safe zone wall for too long.wall-touch:sound: entity.elder_guardian.cursevolume: 0.6pitch: 1.4# --- Safe zones ---# Areas, like spawn, that a player in combat cannot enter. This works on foot and by teleporting.# A player who is already inside when the fight starts may stay, but cannot go deeper.# A zone can come from three places: the spawn area, WorldGuard regions, or boxes you define here.safe-zones:# Is the spawn area from the DSpawn plugin a safe zone?# Does nothing without DSpawn. In the wall list below it is called `spawn`.use-spawn-area: true# WorldGuard regions that are safe zones, written as region names. Only used if WorldGuard is installed.# Example:# worldguard-regions:# - spawn# - safezoneworldguard-regions: []# Your own box-shaped safe zones. Give two opposite corners (x1 y1 z1 and x2 y2 z2), in any order.# The name (here `market`) is what you use in the wall list below. Example:# zones:# market:# world: world# x1: -40# y1: 60# z1: -40# x2: 40# y2: 120# z2: 40zones: {}# Can players throw ender pearls INTO a safe zone (like spawn)?# everyone = nobody can. The pearl stops at the edge and the thrower sees a wall.# combat = only players in combat are stopped. Everyone else can pearl in.# off = pearls fly freely; only a player in combat who LANDS inside is stopped.# Pearls thrown from inside a safe zone always work.pearl-block: everyone# Can a player in combat pearl "around" a safe zone, past a corner, along an edge or over the top?# true = no, those shortcuts are blocked too.# false = they are allowed.block-pearl-shortcuts: true# What happens when a blocked pearl reaches the wall.# land = it hits the wall like a real block: it bursts there and the thrower lands just outside the wall,# taking the normal pearl damage. The throw is not wasted, and nobody gets inside.# break = it bursts at the wall and nobody moves.# If there is no room to stand at that spot (inside a block), the pearl breaks instead.pearl-impact: land# The warning wall shown to a player who throws a pearl toward a safe zone. Only the thrower sees it.# The block it is made of comes from the `wall:` section below, and the zone must be listed in wall.zones.pearl-wall:# How far ahead, in ticks, the pearl's flight is predicted (20 = 1 second).# A bigger number shows the wall earlier but costs a little more.lookahead-ticks: 20# How wide the wall is, in blocks, to each side of the player. Maximum 32.# Bigger than the normal wall so that it is easy to see.radius: 20# How many blocks the wall reaches above the player.above: 10# How many blocks the wall reaches below the player.below: 6# How many seconds the wall stays visible.seconds: 4# What happens if a player in a safe zone gets tagged (for example hit by an arrow from outside)?# true = they are moved just outside the zone.# false = they can stay but cannot go deeper.# Players with the bypass permission, creative players and spectators are never moved.eject-tagged: true# Fast movers (elytra, riptide trident, riding, or faster than about 0.6 blocks per tick)# are watched on every move, so they cannot skip past the wall.# The wall appears where their path would cross a zone edge. Entering a zone is always refused, whatever the speed.fast-move:# How far ahead, in ticks, the path is predicted (20 = 1 second).lookahead-ticks: 12# The wall can appear this many blocks away from the edge. Example: 2.margin-blocks: 2# Players with this permission can enter safe zones while in combat. Only operators have it by default.# The old name dcombat.zones.bypass still works too.bypass-permission: 'dcombat.bypass.zones'# --- The wall ---# When a player in combat gets close to a safe zone edge, a wall of blocks appears there.# Only that player sees it and no real block is placed.# A wall also appears over the top or under the bottom of a zone when needed.# Entering the zone is blocked with or without the wall.wall:# Which zones always show a wall when a player in combat comes near.# The warning wall for pearls and fast movers shows for every zone anyway.# Use `spawn`, the name of one of your boxes, or a WorldGuard region name.# In game, /dcombat wall lists them, and /dcombat wall <zone> switches one on or off (it edits this list).# Example:# zones:# - spawn# - marketzones:- spawn# The block the wall is made of. Any block works, and you can add a state if you like:# 'red_stained_glass_pane[east=true,west=true]'. An unknown name becomes red_stained_glass.block: 'red_stained_glass'# How far around the player the wall is built, in blocks (maximum 32 each).# A bigger wall is visible from further away but costs more.# radius = sideways, above = blocks over the feet, below = blocks under the feet.radius: 12above: 8below: 4# The most wall blocks shown to one player at a time, so a big radius cannot overload their connection.max-blocks: 2400# Which blocks may the wall replace?# true = only air, grass, flowers and similar, so it never hides a real wall or door.# false = it paints over solid blocks too.only-replace-passable: true# Seconds between re-sending the wall to the player while they are near it.# Lower fixes gaps faster, higher sends less. 0 = only when they move.resend-seconds: 1# What happens when a player in combat keeps pushing against the wall.touch:# Seconds of touching before the punishment fires. It starts over after each time.# 0 turns all of `touch` off.seconds: 5# How close to the wall counts as touching, in blocks (0.01 to 1). 0.25 = right up against it.distance: 0.25# Potion effects given each time it fires. Each effect has:# type = the effect name# seconds = how long it lasts# level = 1 for normal, 2 for level II# `particles` and `icon` are optional and default to true. Use [] for no effects.effects:- type: blindnessseconds: 3level: 1- type: slownessseconds: 2level: 1# Run the commands below each time it fires? Off until you set true.run-commands: false# Commands to run. You can use: %player%# A line starting with `player:` runs as the player.# Anything else (or `console:`) runs from the console with full rights, so be careful.commands:- 'console: say %player% kept pushing against a safe zone wall'# Chat messages. & colour codes and &#RRGGBB work. '' sends nothing where noted.# The %words% in a message are filled in by the plugin.messages:no-permission: '&#FF5C5CYou are not allowed to do that.'# Sent when you are first tagged. You can use: %player% (opponent) %seconds%. Empty = nothing.entered: ''# Sent when your tag runs out or your opponent dies. Empty = nothing.left: ''# You can use: %command% %seconds%command-blocked: '&#FF5C5CYou cannot use &f/%command% &#FF5C5Cin combat! &7(%seconds%s left)'# You can use: %seconds%teleport-blocked: '&#FF5C5CYou cannot teleport in combat! &7(%seconds%s left)'# Shown to everyone. You can use: %player%logout-announce: '&#FF5C5C%player% &#FF5C5Clogged out in combat!'# You can use: %seconds%reloaded: 'GF521Reloaded - combat lasts &f%seconds%sGF521.'# You can use: %count% %players%list: '&f%count% &#FF5C5Cin combat: &f%players%'list-empty: '&7Nobody is in combat right now.'usage: '&7Usage: &f/dcombat <reload|list|tag [player] [seconds]|wall [zone] [on|off]>'# Reply to /dcombat tag, which tags a player by hand for testing. You can use: %player% %seconds%tagged: '&7Tagged &f%player% &7for &#FF5C5C%seconds%s&7.'tag-unknown: '&#FF5C5C%player% is not online.'# Shown when a tagged player walks into a safe zone.safe-zone-blocked: '&#FF5C5CYou cannot enter a safe zone while in combat.'# Shown when a pearl is stopped at a safe zone. Empty = nothing.pearl-blocked: '&#FF5C5CYour pearl cannot enter a safe zone.'# Shown when a tagged player is moved out of a safe zone. Empty = nothing.ejected: '&#FF5C5CYou were moved out of the safe zone because you are in combat.'# Sent after touching the wall for `touch.seconds`. Empty = nothing.wall-touch: '&#FF5C5CStay away from the safe zone while you are in combat.'# Replies to /dcombat wall (admins only).# wall-list is one line listing every zone. Each zone is written with wall-list-on (wall on) or# wall-list-off (wall off), and the zones are joined with wall-list-separator.# You can use: %zones% (in wall-list) %zone% (in the others)wall-list: '&7Walls: %zones%'wall-list-on: 'GF521%zone%'wall-list-off: '&8%zone%'wall-list-separator: '&7, 'wall-no-zones: '&7There are no safe zones set up, so there is nothing to put a wall around.'wall-unknown-zone: '&#FF5C5CThere is no safe zone called %zone%.'wall-on: 'GF521The wall around %zone% is on.'wall-off: 'GF521The wall around %zone% is off.'wall-config-broken: '&#FF5C5Csettings.yml has a YAML error, so nothing was changed. Fix the file and reload first.'# Shown to the player who killed a combat log body. %player% is the player who logged out. '' = no message.body-killed: '&7You killed the body of &f%player%&7.'# Shown when a player joins and gets their items back from a body that was not killed. '' = no message.body-returned: 'DFFB0You logged out in combat. Your items have been returned.'# Shown when a player joins after their body was killed. They die right after. '' = no message.body-dead: '&#FF4D6DYou logged out in combat and your body was killed.'# Shown when a tagged player tries something that tag-limits forbids. %seconds% is the tag time left.limit-pearl: '&#FF5C5CYou cannot use ender pearls in combat! &7(%seconds%s left)'limit-pearl-cooldown: '&#FF5C5CWait %seconds%s before throwing another ender pearl in combat.'limit-flight: '&#FF5C5CYou cannot fly in combat! &7(%seconds%s left)'limit-elytra: '&#FF5C5CYou cannot use an elytra in combat! &7(%seconds%s left)'limit-riptide: '&#FF5C5CYou cannot use riptide in combat! &7(%seconds%s left)'
DCore DCore carries the config loader and the colour handling. Without it this plugin has nothing to stand on.
DSpawn, WorldGuard, WorldEdit. Optional. DSpawn's spawn area and WorldGuard regions can count as safe zones; without them those zone sources are simply skipped.
Paper 1.21 or newer, and forks like Purpur and Leaf. Folia is supported. Java 21 or newer.