ZCommandCooldown

Zepsi的命令冷却。一个简单的命令冷却插件。

资源图片
# ZCommandCooldown 一个轻量级的 Minecraft 插件,为服务器上的任何命令添加可定制的、基于权限的冷却时间。 [![Paper 兼容](https://img.shields.io/badge/Paper-Compatible-brightgreen)](https://papermc.io/) [![Folia 兼容](https://img.shields.io/badge/Folia-Compatible-brightgreen)](https://github.com/PaperMC/Folia) [![Minecraft 1.20+](https://img.shields.io/badge/Minecraft-1.20%2B-blue)](https://www.minecraft.net/) ## 特性 - **基于权限的冷却时间**: 根据玩家权限设置不同的冷却持续时间 - **命令别名**: 定义共享相同冷却时间的命令别名 - **可定制的消息**: 具有 MiniMessage 格式支持的完全可定制的消息 - **动作栏支持**: 将冷却消息显示在动作栏而不是聊天中 - **管理员命令**: 重新加载配置,清除冷却时间,等等 - **持久的冷却时间**: 冷却时间在服务器重启后仍然有效 - **Folia 兼容**: 适用于 Paper 和 Folia 服务器 ## 依赖 - [MCKotlin](https://modrinth.com/plugin/mckotlin) ## 安装 1. 从 [Modrinth](https://modrinth.com/plugin/zcommandcooldown/versions) 下载最新版本 2. 从 [Modrinth](https://modrinth.com/plugin/mckotlin) 下载 MCKotlin 的适当版本 3. 将 JAR 文件放在服务器的 `plugins` 文件夹中 4. 重启你的服务器 5. 编辑 `plugins/ZCommandCooldown/` 目录中的配置文件以定制插件 ## 配置 (`cooldowns.yml`) ```yaml cooldowns: repair: # 命令,将应用冷却时间。 aliases: # 命令的其他别名。所有别名共享相同的冷却时间。 - fix - erepair durations: # 根据权限设置冷却持续时间。如果玩家拥有多个这些权限,则使用最低持续时间。 default: 600 # 默认情况下,玩家为 600 秒 group.group1: 120 # 拥有 group.group1 权限的玩家为 2 分钟 group.group2: 60 # 拥有 group.group2 权限的玩家为 1 分钟 custom.repair.fast: 30 # 拥有 custom.repair.fast 权限的玩家为 30 秒 ```