Documentation
✅ Features
- Prevents combat logging by tagging players and spawning ghost NPCs on logout (Citizens required)
- Blocks combat-tagged players from entering specified WorldGuard regions
- Restricts use of configurable items while in combat
- Fully configurable durations, regions, and items
- Commands for reloading config and setting ghost NPC skins
️ Installation
- Download the latest CombatGhost jar.
- Place it in your server’s /plugins folder.
- Make sure you have Citizens and WorldGuard installed.
- Restart your server.
⚙️ Configuration
Edit plugins/CombatGhost/config.yml to customize:
- Combat tag duration
- Ghost NPC duration
- Default NPC skin
- Allowed skin setting
- Restricted WorldGuard regions
- Restricted items
Example:
combat-tag-duration: 15
ghost-duration: 30
npc-default-skin: "Steve"
allow-skin-set: true
restricted-regions:
- "safezone"
- "spawn"
restricted-items:
- "ENDER_PEARL"
- "GOLDEN_APPLE"
Commands
/combatghost reloadReloads the plugin configurationcombatghost.reload/cb skin set <skin>Set your ghost NPC’s skin(none, configurable)
Permissions
combatghost.reloadAllows reloading the pluginOP
Dependencies
Supported Versions
- 1.13 – 1.21 (latest Citizens & WorldGuard required)
❓ FAQ
Q: What happens if a player logs out during combat?
A: A ghost NPC is spawned at their location for a configurable time.
Q: Can I block specific items (like ender pearls) during combat?
A: Yes! Add them to the restricted-items list in config.yml.
Q: How do I prevent combat-tagged players from entering safe zones?
A: Add your WorldGuard region names to the restricted-regions list in config.yml.
For more help, see the plugin discussion or contact the author!
![[IMG]](https://www.spigotmc.org/data/attachments/894/894347-b39efc04d1e85d83916195da62265365.jpg)