CommandCooldown 指令冷却
作者:Falistos
发布时间:2015年4月2日
原生版本:未知
测试支持:1.7,1.8,1.9,1.10
简单的命令冷却插件,具有自定义权限。
点此下载插件详细介绍
CommandCooldown 插件允许你为每个命令设置单独的冷却时间。它简单易用,轻量级,并提供了全局冷却、冷却权限以及关联命令等功能,同时还支持自定义消息。
⚙️ CommandCooldown
🚀 功能特性
- 为任何你选择的命令设置冷却时间。
- 全局冷却时间(用于避免刷屏)。
- 冷却权限(为特定用户组/玩家设置冷却时间)。
- 添加关联命令(共享同一冷却时间的命令)。
- 可配置的消息。
📦 安装
- 将 .jar 文件放入 plugins 目录。
- 重启服务器。
- 在 CommandCooldown/config.yml 中配置冷却时间和选项。
🔑 权限
commandcooldown.bypass: 绕过冷却时间(默认: false)commandcooldown.permission.<name>: 设置与默认不同的冷却时间(参见 config.yml)commandcooldown.reload: 允许重载插件(默认: op)
⌨️ 命令
/commandcooldown reload: 重载配置
📝 配置示例 (config.yml)
# +-----------------------------------------------------+ #
# | CommandCooldown by SirBlobman | #
# +-----------------------------------------------------+ #
# | | #
# | CONFIGURATION | #
# | | #
# +-----------------------------------------------------+ #
# Should the plugin check for updates on startup?
update-check: true
# Default cooldown in seconds
default-cooldown: 5
# Cooldown bypass permission
bypass-permission: "commandcooldown.bypass"
# Message when you bypass a cooldown
bypass-message: "&aYou bypassed the cooldown!"
# Command cooldowns
# Command:
# cooldown: cooldown in seconds
# linked-commands: commands that share the same cooldown
# permission: permission required to have the cooldown
commands:
heal:
cooldown: 10
linked-commands:
- "feed"
- "god"
permission: "commandcooldown.heal"
# Global cooldown
# Useful to prevent spam
global-cooldown:
enabled: false
cooldown: 2
bypass-permission: "commandcooldown.bypass.global"
message: "&cYou must wait {time} seconds before using another command!"
# Message settings
messages:
cooldown: "&cYou must wait {time} seconds before using this command again!"
no-permission: "&cYou don't have permission to use this command!"
# Other settings
settings:
# Should the cooldown timer be reset on death?
reset-on-death: false