Basic Concepts
The combat tag, how a fight ends, safe zones, modules and how files and permissions work.
Almost every part of uxmPVPCore reacts to one thing: whether a player is tagged. Read this page once and the rest of the docs follow from it.
The combat tag
A player is tagged when another player hurts them, by hand or with a projectile they shot: an arrow, a trident, a snowball, a wind charge. Both players are tagged, the attacker and the victim, and every new hit starts the countdown again. Mobs, fall damage, lava and TNT tag nobody.
| Term | Meaning |
|---|---|
| Tagged, in combat | The player has hit or been hit by a player in the last 15 seconds (combatDuration) |
| Attacker | The last player who hit this player. They get the kill if the player dies or logs out |
| Enemy | A player this player is fighting. A tagged player can have several |
| Damage entries | Every hit of the fight: who, with what, how much, how far, critical or not. They feed the battle log and the rating |
A hit tags only if it really happens. A hit another plugin cancels, such as one inside a claim or a
WorldGuard region with PvP off, tags nobody. Each player is checked on their own: in a world listed
in disabledWorlds, in a region where the combat-tag flag is denied, or with the bypass
permission, that player is not tagged, while the other one still is.
See Combat Tag.
How a tag ends
| End | When | What follows |
|---|---|---|
EXPIRED | Nobody hit the player for 15 seconds, or the server stopped | The player is free again. The fight is saved in the battle log only if saveExpired is on |
DEATH | The player died while tagged | The last attacker gets a kill and rating, the player a death. A battle log is saved, the head may drop and a kill message is shown |
LOGOUT | The player left the server while tagged | The combat log punishments run, by default the player is killed. The last attacker gets the kill |
MANUAL_REMOVE, ADMIN | A staff member removed the tag with /combattag untag or the menu | Nothing is counted |
When a tagged player dies, their drops can be locked for the killer for a few seconds, see Combat Logging.
What a tag changes
While a player is tagged, the combat modules apply. Each has its own file in configs/combattag/
and can be turned off on its own.
| Module | While tagged |
|---|---|
| Barrier | The player cannot walk or teleport into a safe zone |
| Teleport | Teleports are refused, ender pearls only within 1000 blocks |
| Fly | Flying and elytra gliding are refused |
| Commands | Only the commands on the list work |
| Items | Picking up and dropping items are refused |
| Building | Breaking and placing blocks are refused or give no drops |
| Item cooldowns | Items can have a combat cooldown different from the normal one |
| Combat logging | Logging out is punished |
Safe zones
A safe zone is a place where PvP is off. uxmPVPCore asks the protection plugins that are installed:
| Plugin | Safe zone |
|---|---|
| WorldGuard | A region whose pvp flag is set to deny |
| GriefPrevention | Inside any claim |
| uxmClaims | Inside any claim |
The barrier keeps tagged players out of safe zones, so a player cannot run into spawn or their claim to escape a fight. Answers are cached for 5 minutes per block; see hooks.yml.
Modules and extensions
Every part of the plugin is a module: Combat Tag, Barrier, Statistic, Battle Logs and so on. Each
reads its own file, and /pvpcore reload <module> reads that file again without a restart. Modules
depend on each other: Combat Logging needs Combat Tag, and Head Drops and Kill Messages need Battle
Logs. See Configuration.
Extensions are optional jars put into plugins/uxmPVPCore/modules/: FFA, BlockRegen, BlockLocker and
GP Expiration. See Extensions.
Statistics and rating
Kills and deaths are counted when a tag ends with a death or a logout, never from a vanilla death message. A player killed by a mob or by falling while not tagged loses nothing; a tagged player who dies the same way still gives the kill to their last attacker. With the Advanced Statistic module, every counted kill also moves rating, adds to kill streaks and can change a rank. See Statistics and Rating.
Files, messages and permissions
| Topic | How it works |
|---|---|
| Files | Made from the plugin's defaults. Missing keys are added on start; a wrong value keeps its default and is reported in the console |
| Messages | In the file of the module they belong to, not in one language file. Written in MiniMessage, such as <red> and <#FF635F>. Each message carries its own label, there is no shared prefix |
| Placeholders | {token} placeholders inside messages, and PlaceholderAPI placeholders for other plugins. See Placeholders |
| Commands | Each module has a commands.yml with the name, aliases, permission and description of its commands |
| Permissions | All uxmpvpcore.* nodes are for ops until granted. See Permissions |
Related: Installation, Features
Was this page helpful?