🚀 About DontBeABitch
DontBeABitch is a comprehensive combat management plugin for Paper/Spigot 1.21+ servers. It enforces fair PvP by blocking teleportation commands (/back, /spawn, /tpa, etc.) during combat tags, prevents combat logging with kill-on-quit, and includes modular health displays, Discord integration for real-time alerts, and an intuitive Admin GUI for management.
Key Philosophy: Promote engaging PvP without exploits. All features are toggleable for flexibility.
Version: 1.0.13 | Author: ThePurpleFox | Compatibility: Minecraft 1.21+ (Paper/Spigot)
Core Features
Combat Tagging & Blocking
- Automatic tagging on mutual damage (player-player or configurable mobs); default 15s duration.
- Blocks /back, /spawn, /tp*, /home, /tpa, and custom commands during tags.
- Grace period post-combat to prevent spam-teleports.
- Action bar timer for visual feedback.
Anti-Combat Logging
- Instant kill on quit while tagged (configurable; backs up inventory for restoration).
- Smart win detection: Credits kills even if victim didn't fight back.
Modular Health Displays (All Toggleable)
- Floating Text: Health above heads (hides for invisible players).
- Below-Name Scoreboard: Health under player names.
- Nametag Suffix: Appends health to nametags.
- Chat Suffix: Shows health in chat, e.g., "<Player [20❤]>".
- Chat Heads: [👤] icon in chat; hover for player head.
Administrative Tools
- Admin GUI (/dbab): Toggle features, edit messages, manage webhooks/commands.
- Inventory inspection/backups for online/offline players.
- Customizable messages with placeholders (%player%, %time%).
Integrations
- Discord Bot: Real-time alerts (fights, logs, kills) with embeds/player heads.
- Resource Packs: Prompts for PvP enhancements (Java/Bedrock).
- Webhook logging for debug/combat events.
Performance & Security
- Lightweight: Efficient event handling, in-memory state.
- Jump/Enderpearl blocking during combat.
- Low-health thresholds for alerts/protections.
Changelog (v1.0.13)
- Initial release: Core combat blocking, Admin GUI, Discord integration.
- Health displays: Floating/below-name/chat options with toggles.
- Resource pack prompting for PvP packs.
- Cooldowns/grace periods for teleports.
- Webhook support for events; tab completion for commands.
- Inventory backups; kill-on-quit with smart detection.
Planned: Mob tagging, analytics dashboard, economy fines.
Installation & Setup
- Download JAR from BuiltByBit.
- Place in /plugins/ folder; restart server.
- Assign permissions (e.g., dontbeabitch.admin for ops).
- Edit config.yml (see below); reload with /dbab reload.
- Discord (Optional): Create bot at discord.com/developers; set token in config; invite with Send Messages/Embed Links perms.
- Resource Packs: Host .zip/.mcpack; set URLs/hashes in config.
Testing
Hit another player; try /back – should block. Quit while tagged – should kill/log.
Configuration (config.yml)
Generated on first load. Key sections:
combat:
duration-seconds: 15 # Combat tag length
post-combat-block-seconds: 0 # Grace period
kill-on-quit: true # Auto-kill loggers
features:
teleport-blocking: true
jump-protection: true
enderpearl-blocking: true
inventory-backup: true
low-health-threshold: 6 # Hearts for alerts
health-displays:
floating-text: false
below-name: false
nametag-suffix: false
chat-suffix: false
chat-heads: false
blocked-commands-extra: [] # e.g., ["warp", "tpa"]
resource-pack:
url: "https://example.com/pvp-pack.zip"
bedrock-url: "https://example.com/pvp-bedrock.mcpack"
hash: "md5-hash-here"
force: false
discord:
enabled: true
token: "YOUR_BOT_TOKEN"
guild-id: "YOUR_GUILD_ID"
webhooks:
debug: "https://discord.com/api/webhooks/..."
combat: "https://discord.com/api/webhooks/..."
messages: # Editable via GUI or commands
combat-start: "&cYou are now in combat! No teleporting for %time%s."
# ... (20+ messages)
Reload after edits. Use /dbab setmessage for in-game changes.
Commands
All support tab completion. Combat features are automatic.
/back: Teleport to last location (blocked in combat; dontbeabitch.back)/spawn: To world spawn (blocked; dontbeabitch.spawn)/dbabor/dontbeabitch: Admin GUI (dontbeabitch.admin)/dbab reload: Reload config (admin)/dbab togglefeature <feature> [on/off]: e.g., /dbab togglefeature back-command off/dbab addcommand <cmd>: Block custom command (admin.commands)/dbab setmessage <key> <text>: Edit messages (admin.messages)
Permissions
- dontbeabitch.back: Use /back (default: true)
- dontbeabitch.spawn: Use /spawn (default: true)
- dontbeabitch.admin: Access GUI/commands (op)
- dontbeabitch.admin.features: Manage toggles/webhooks (op)
- dontbeabitch.admin.commands: Blocked commands (op)
- dontbeabitch.admin.messages: Edit messages (op)
- dontbeabitch.bypass: Ignore combat tags (staff)
Assign via LuckPerms: /lp group admin permission set dontbeabitch.admin true
Admin GUI (/dbab)
Inventory UI with tabs:
- Features: Toggles/sliders for timers, webhooks.
- Blocked Commands: Add/remove/search list.
- Messages: Edit/preview texts.
- Discord/Webhooks: Token/channels, test sends.
- Status: Info/reload/logs.
Permissions per tab; closes on timeout/full inventory.
Discord Integration
Built-in bot for alerts (fights, logs, kills) with embeds/heads. Spam protection (5min rate-limit).
Events Logged:
- Combat start/end (color-coded embeds).
- Kills/logs (red alerts, player mentions).
- "Jumped" warnings (surrounded but not fighting).
- Admin actions (GUI changes).
discord-bot:
enabled: true
token: "YOUR_BOT_TOKEN"
guild-id: "YOUR_SERVER_ID"
admin-role-id: "ADMIN_ROLE_ID"
log-channel-id: "CHANNEL_ID"
Enable Developer Mode for IDs. Bot needs Send Messages/Embed Links.
Resource Pack Support
Prompts PvP packs on join (Java/Bedrock).
resource-pack:
url: "https://example.com/pvp.zip"
bedrock-url: "https://example.com/pvp.mcpack"
hash: "md5-here"
force: false # Kick if declined
Recommendations: PvP Essentials (short swords/clear HUD).
Debugging & Logging
Set debug.enabled: true for console details. Webhooks for external logs.
- log-combat-events: All tags/ends.
- log-teleport-blocks: Blocked attempts.
Example: [INFO] Blocked /back for PlayerX (10s remaining)
Troubleshooting
- GUI not opening: Check dontbeabitch.admin; no inventory conflicts.
- No tagging: Verify teleport-blocking: true; test mutual damage.
- Bot offline: Invalid token? /dbab reload; check perms.
- Pack fails: Bad URL/hash; manual test.
- Lag: Disable floating-text on big servers.
- Conflicts: Avoid other combat plugins.
Share logs with debug on for support.
Screenshots
Note: Images may not reflect v1.0.13 (e.g., missing modular health/chat heads).