hClansPvPAddon
Clan Friendly-Fire Control Addon for hClans
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
hClansPvPAddon is an addon for
hClans that adds configurable PvP control inside clans.
Clan Friendly-Fire Control Addon for hClans
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The addon allows clans to control whether members can damage each other, provides a GUI for changing the PvP state, supports personal PvP rules between specific clan members and blocks friendly fire when clan PvP is disabled.
It also supports projectile and indirect damage checks, world restrictions, configurable messages, clan permission checks and persistent state storage through the hClans database system.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Main Features
- Clan-wide PvP toggle.
- Personal PvP state between specific clan members.
- Configurable /clan pvp subcommand.
- GUI for managing clan PvP.
- Member list inside the GUI.
- Page navigation for member entries.
- Configurable GUI layout, title, size and items.
- Custom materials, names, lore, actions and heads.
- Configurable enable and disable aliases.
- Optional clan permission check for toggling PvP.
- Owner bypass option.
- Friendly-fire blocking between clan members.
- Projectile damage support.
- Indirect source detection for pets, TNT and other supported sources.
- World blacklist or whitelist.
- Configurable attacker and victim notifications.
- Notification cooldown to prevent spam.
- Persistent PvP states stored through hClans database API.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How It Works
Players open the PvP menu with:
Code (Text):
/clan pvp
The addon stores two types of PvP state:
- Clan state - global PvP state for the whole clan.
- Pair state - personal PvP state between two specific clan members.
────────────────────────────────────────
Clan PvP Toggle
The clan-wide toggle controls the default friendly-fire behavior for clan members.
Default config option:
Code (Text):
settings:
defaultPvpEnable: false
defaultPvpEnable: false
────────────────────────────────────────
Personal Member Rules
The GUI can display clan members as player-head items.
A player can click a member item to toggle personal PvP state between themselves and that member.
This allows more precise control than only enabling or disabling PvP for the whole clan.
Available member placeholders include:
Code (Text):
{target}
{targetUuid}
{role}
{pairState}
{targetUuid}
{role}
{pairState}
────────────────────────────────────────
Damage Handling
The addon listens to damage events and checks whether the attacker and victim are in the same clan.
Supported damage handling includes:
- direct player damage
- projectile damage
- tamed entity ownership
- TNT source resolving
- area effect cloud source resolving
- Evoker Fangs owner resolving
────────────────────────────────────────
World Restrictions
PvP control can be restricted by world.
Supported modes:
- blacklist - disable addon logic in listed worlds.
- whitelist - allow addon logic only in listed worlds.
Code (Text):
settings:
damage:
worlds:
mode: blacklist
list: []
damage:
worlds:
mode: blacklist
list: []
────────────────────────────────────────
Notifications
The addon can notify the attacker and optionally the victim when friendly fire is blocked.
Notification settings:
Code (Text):
settings:
damage:
notify:
attacker: true
victim: false
cooldownMillis: 5000
damage:
notify:
attacker: true
victim: false
cooldownMillis: 5000
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GUI Configuration
The GUI is configured in:
Code (Text):
plugins/hClansPvPAddon/gui.yml
- title
- size
- state text
- filler items
- enable button
- disable button
- member items
- empty member items
- previous and next page buttons
- back button
- materials
- slots and page slots
- priority
- CustomModelData
- display names
- lore
- actions
Code (Text):
&0ToolRise &8| &0Clan PvP
────────────────────────────────────────
GUI Placeholders
Placeholders available in GUI text and actions:
Code (Text):
{clan}
{state}
{player}
{playerUuid}
{target}
{targetUuid}
{role}
{pairState}
{page}
{pages}
{state}
{player}
{playerUuid}
{target}
{targetUuid}
{role}
{pairState}
{page}
{pages}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Configuration
Main configuration file:
Code (Text):
plugins/hClansPvPAddon/config.yml
Code (Text):
settings:
defaultPvpEnable: false
command:
visibleInTabComplete: true
aliases:
enable:
- "enable"
disable:
- "disable"
permissions:
toggle:
ownerAlwaysAllowed: true
clan:
enable: false
permission: hclanspvp.toggle
damage:
enable: true
projectiles: true
worlds:
mode: blacklist
list: []
notify:
attacker: true
victim: false
cooldownMillis: 5000
defaultPvpEnable: false
command:
visibleInTabComplete: true
aliases:
enable:
- "enable"
disable:
- "disable"
permissions:
toggle:
ownerAlwaysAllowed: true
clan:
enable: false
permission: hclanspvp.toggle
damage:
enable: true
projectiles: true
worlds:
mode: blacklist
list: []
notify:
attacker: true
victim: false
cooldownMillis: 5000
────────────────────────────────────────
Actions
Configurable action sections:
Code (Text):
storageError
notInClan
noPermission
usage
enable
disable
damageCancelledAttacker
damageCancelledVictim
notInClan
noPermission
usage
enable
disable
damageCancelledAttacker
damageCancelledVictim
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Commands
Code (Text):
/clan pvp
/clan pvp enable
/clan pvp disable
/clan pvp enable
/clan pvp disable
/clan pvp enable enables clan member damage.
/clan pvp disable disables clan member damage.
Enable and disable aliases are configurable in config.yml.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Permissions
hClansPvPAddon can use a clan permission from the hClans permission system.
Default configurable clan permission:
Code (Text):
hclanspvp.toggle
Relevant settings:
Code (Text):
settings:
permissions:
toggle:
ownerAlwaysAllowed: true
clan:
enable: false
permission: hclanspvp.toggle
permissions:
toggle:
ownerAlwaysAllowed: true
clan:
enable: false
permission: hclanspvp.toggle
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Requirements
- Java 17 or newer.
- Bukkit / Spigot / Paper compatible server.
- hClans plugin.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Installation
- Install hClans.
- Place hClansPvPAddon.jar into your server's plugins folder.
- Start or restart the server.
- Open the generated configuration files.
- Configure config.yml and gui.yml if needed.
- Restart the server or reload hClans/addons through your normal workflow.
Code (Text):
plugins/hClansPvPAddon/config.yml
plugins/hClansPvPAddon/gui.yml
plugins/hClansPvPAddon/gui.yml
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Notes
- The addon registers pvp as a clan subcommand.
- Clan PvP states are stored persistently.
- Personal pair states are stored separately from the clan-wide state.
- The GUI can be fully redesigned through gui.yml.
- World restrictions only affect the damage-control logic.
- Projectile handling can be disabled in the configuration.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.16, 1.17, 1.18
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
⭐ hClansPvPAddon [1.16.X-26.X] ⭐ | Addon for plugin hClans is a free Minecraft Java mod. Compatible with Minecraft 1.16, 1.17, 1.18, 1.19 and newer. Downloaded 22 times (via Spigot). Download it and open it directly in the game.