⚒ MaceCooldown
[
]()
[
]()

Simple, effective Mace cooldown control for your server.
Prevent Mace spam by enforcing a configurable cooldown after every successful hit — no dependencies, no bloat.
📖 Overview
MaceCooldown is a lightweight plugin that adds a configurable attack cooldown to the Mace weapon. After a player lands a hit with a Mace, the item is put on cooldown for a set duration. Any further attack attempts while on cooldown are cancelled and the player is notified. Everything is fully configurable — duration, messages, and even message spam throttling — and can be hot-reloaded without a restart.
✨ Why Choose MaceCooldown?
⚡ Dead Simple – One listener, one config, one command. Zero dependencies.
🎨 Fully Configurable Messages – All feedback messages support & color codes and are editable in config.yml.
🔧 Spam Protection – Built-in message throttle prevents players from getting flooded with cooldown warnings.
🚀 Performance Friendly – Minimal overhead: a single event listener and an in-memory cooldown map.
🛠️ Hot Reload – Change settings live with /macecooldown reload — no restart needed.
✨ Features
🔴 Core Features
⚒️ Enforces a configurable cooldown (default: 120 seconds) after every Mace hit
🚫 Cancels damage if the Mace is still on cooldown
💬 Notifies the player when the cooldown is applied and when they try to attack while on cooldown
🔇 Configurable message throttle to prevent notification spam (default: 3s between messages)
🟢 Customization
⚙️ Enable or disable the entire cooldown system without removing the plugin
🎨 All messages customizable with full & color code support and {seconds} / {enabled} placeholders
🔄 Live config reload with /macecooldown reload
📚 Documentation
⚙️ How It Works
When a player attacks any entity holding a Mace:
🟢 If not on cooldown — the hit lands normally, then cooldown-seconds × 20 ticks of cooldown is applied to the Mace item. The player receives the cooldown-applied message.
🔴 If already on cooldown — the damage event is cancelled entirely (the hit deals no damage). The player receives the mace-on-cooldown message, subject to throttle.
The cooldown is applied using Bukkit's native item cooldown (player.setCooldown(Material.MACE, ticks)), so the Mace also shows the visual cooldown overlay in the player's hotbar automatically.
🔇 Message Throttle
To prevent chat spam when a player rapidly clicks while on cooldown, the mace-on-cooldown message is rate-limited to once every throttle-seconds (default: 3). Setting throttle-seconds: 0 disables throttling and shows the message on every cancelled attack.
⚙️ Configuration
Configuration file: config.yml
# Enable or disable the mace cooldown feature entirely
cooldown-enabled: true
# Cooldown duration in seconds (converted to ticks internally)
# Default: 120 (2 minutes)
cooldown-seconds: 120
messages:
# Show message when player attacks while on cooldown
on-cooldown-enabled: true
# Show message when cooldown is first applied after a hit
cooldown-applied-enabled: true
# Throttle: minimum seconds between "on cooldown" messages per player
# Set to 0 to show every time
throttle-seconds: 3
text:
mace-on-cooldown: "&cMace is still on cooldown!"
cooldown-applied: "&6Mace cooldown applied for {seconds} seconds!"
no-permission: "&cYou don't have permission to use this command!"
reload-usage: "&eUsage: /macecooldown reload"
reload-success: "&aMaceCooldown configuration reloaded successfully!"
reload-info-enabled: "&7Cooldown enabled: {enabled}"
reload-info-duration: "&7Cooldown duration: {seconds} seconds"
📋 Configuration Options
| Option |
Description |
Default |
cooldown-enabled |
Enable or disable the entire feature |
true |
cooldown-seconds |
Cooldown duration in seconds |
120 |
messages.on-cooldown-enabled |
Show message when attack is blocked |
true |
messages.cooldown-applied-enabled |
Show message when cooldown is applied |
true |
messages.throttle-seconds |
Minimum seconds between cooldown warnings |
3 |
text.mace-on-cooldown |
Message shown when Mace is on cooldown |
see above |
text.cooldown-applied |
Message shown when cooldown is applied |
see above |
Placeholders in messages:
{seconds} — the configured cooldown duration
{enabled} — true or false (used in reload info messages)
💡 Note: All changes are applied instantly with /macecooldown reload. No restart required.
💻 Commands
| Command |
Description |
Permission |
/macecooldown reload |
Reload the configuration from disk |
macecooldown.admin |
Aliases: /mcd
🔐 Permissions
| Permission |
Description |
Default |
macecooldown.admin |
Access to /macecooldown reload |
op |
📥 Installation
Getting started is easy!
📋 Requirements
| Requirement |
Version |
| Minecraft |
1.21.x |
| Server Software |
Paper, Spigot |
| Java |
21+ |
| Dependencies |
None |
🚀 Installation Steps
- 📦 Download the latest version of MaceCooldown.
- 📂 Place the
.jar file inside your server's plugins/ folder.
- 🔄 Restart your server.
- ⚙️ Adjust
cooldown-seconds and messages in plugins/MaceCooldown/config.yml.
- 🎉 Use
/mcd reload to apply any changes live.
🆘 Support & Bug Reports
Need help, found a bug, or have a suggestion?
Join the GetUrPlugins Discord community!
🐛 Bug Reports – Report bugs and unexpected behavior.
💬 Support – Get help with installation and configuration.
💡 Suggestions – Share ideas for future improvements.
📢 Announcements – Stay informed about updates and releases.
⚠️ Please include your Minecraft version, server software, and relevant error logs when reporting an issue.
📜 Credits & License
Developed by: GetUrPlugins
License: All Rights Reserved (ARR).
© GetUrPlugins. All rights reserved.
❌ Unauthorized redistribution or resale is prohibited.
❌ Modification, decompilation, or republishing is prohibited without explicit permission.
✅ Usage is permitted under the conditions set by the author.
See https://gcl.onl/licenses/arr for the full license terms.
Made with ❤️ by GetUrPlugins
⚒ **MaceCooldown** – Keep the Mace in check.