Commands++ | 高级命令管理插件

插件

原名 Commands++ | Next-Level Command Management Plugin · 作者 Gluckz

为现代 Minecraft 服务器添加了一个广泛的可高度自定义和可编程的命令与功能列表。

0 本站下载 0 关注 更新于 6 个月前

最新 2.0.0 · 26.1.2 · Folia / Paper

一键开服(送7天)

Commands++

Minecraft 服务器的现代基础工具替代方案。 一个 YAML 文件即可控制所有实用功能——家园、传送点、传送请求、隐身、监禁、静音、邮件、工具箱、经济系统、聊天格式化——可在 Paper、Folia 和 Purpur 上按模块切换。


什么是 Commands++

一个原语概念——模块(modules)——驱动服务器上的所有功能。每个模块都是一个自包含的功能单元,拥有独立的命令、监听器、配置部分和数据文件。在 config.yml 中切换模块,使用 /cmds enable|disable <module> 热切换,或执行 /cmds reload 应用编辑。无需重启,无监听器泄漏,不会出现一半 Adventure API 一半旧版风格的输出。

默认自带 23 个模块。124 个命令。将 jar 包放入插件目录,设置你的 Discord 邀请链接,执行 /cmds reload,完成。


为什么服务器管理员选择它

  • 每个功能独立开关。 不想要家园功能?设置 modules.homes.enabled: false。不想要聊天格式化?关闭该模块即可。大多数插件强制开启所有功能。
  • 跨领域强制执行。 静音不仅屏蔽聊天,还屏蔽 /msg、/r、/me、/mail。监禁会阻止所有传送命令(并在 TPA 延迟执行时重新检查)。隐身状态对 /players、/lastseen、/whois、/getpos、加入/离开广播以及最后在线更新不可见。大多数插件只能半实现这些功能。
  • 重载安全。 /cmds reload 真正注销了监听器。大多数插件会在重载后悄悄泄漏处理器并重复触发事件。
  • 原生支持 Folia。 区域调度器、异步调度器、实体调度器——均在适当位置使用。全面使用 teleportAsync。完全不使用旧版的 Bukkit.getScheduler()。
  • 全面使用 MiniMessage。 支持渐变、悬停、点击、彩虹效果。旧的 & 代码仍然有效——自动检测。无需任何 MiniMessage 知识即可开始使用。
  • 审计日志记录。 每项针对其他玩家的管理员操作都会追加到 audit.log 中,包含时间戳、操作者和目标。大多数 Essentials 类插件没有等效功能。
  • 即插即用。 自带品牌化渐变前缀、工作正常的默认值、动态彩虹欢迎标题,并通过 /support、欢迎消息和 /cmds version 连接 Discord CTA。启动时零编辑即可使用。

模块——用于一切的原语

modules:
  homes:
    enabled: true
    default_max_homes: 3
    default_home_name: home

  teleport:
    enabled: true
    request_timeout_seconds: 60
    teleport_delay_seconds: 3
    cancel_on_movement: true
    cancel_on_damage: true

  randomtp:
    enabled: true
    cooldown_seconds: 60
    max_attempts: 12
    worlds:
      world: { center_x: 0, center_z: 0, radius: 5000, min_y: 64, max_y: 256 }

  economy:
    enabled: true
    confirm_threshold: 1000.0   # /pay 超过此值需要 /payconfirm

  chat:
    enabled: true
    format: "<prefix><white><displayname></white><suffix> <dark_gray>»</dark_gray> <message>"
    luckperms_prefix: true

每个模块具有相同的结构:enabled 加上其专属的键。插件升级带来的新默认值会合并进来,而不会覆盖你的编辑内容。

运行时切换

命令 效果
/cmds modules 列出所有模块及其当前状态
/cmds enable <module> 开启模块,立即运行其 onEnable
/cmds disable <module> 关闭模块,注销其监听器 + 取消其任务
/cmds reload 重新读取配置和消息,重新启用模块
/cmds update 手动检查 Modrinth

跨领域强制执行

Commands++ 在此处深入超越了仅基于命令的 Essentials 检查。

静音(Mute) — 屏蔽聊天、/msg、/r、/me、/mail send。每条文本路径都通过单个辅助函数检查 PlayerStatus.isMuted,因此新增命令会自动获得静音效果。

监禁(Jail) — 屏蔽 /spawn、/home、/warp、/tpa、/tpahere、/back、/randomtp、/jumpto、/top、/tphere、/tppos、/world。TPA 延迟会在执行时重新检查,因此在倒计时期间进行监禁实际上会阻止传送。

隐身(Vanish) — 对 /players、/list、/lastseen、/whois、/getpos、/near 隐藏。抑制加入/离开广播。退出时跳过 lastseen.yml 更新。取消物品拾取 + 实体锁定。重连后保持状态。

AFK(空闲) — 根据移动和聊天自动检测。可选地配置空闲超时后自动踢出。打破空闲状态的聊天会前置 [AFK] 标签,而不是下一条消息。


视觉预设

基于权限的聊天和昵称渐变样式。玩家运行 /chatcolor list 或 /nick list 即可查看可点击应用的画廊。

modules:
  chat:
    permission_styles:
      - { name: rainbow,     permission: commandsplus.chat.style.rainbow,     style: "<rainbow><message></rainbow>" }
      - { name: fire,        permission: commandsplus.chat.style.fire,        style: "<gradient:#ff5555:#ffaa00:#ffff55><message></gradient>" }
      - { name: vip_gold,    permission: commandsplus.chat.style.vip_gold,    style: "<bold><gradient:#ffd700:#fff8a0><message></gradient></bold>" }
      - { name: mvp_diamond, permission: commandsplus.chat.style.mvp_diamond, style: "<bold><gradient:#00ffff:#00aaff:#a855f7><message></gradient></bold>" }

  playerstate:
    nick_max_length: 16
    nick_presets:
      - { name: rainbow, permission: commandsplus.nick.preset.rainbow, style: "<rainbow><message></rainbow>" }
      - { name: ocean,   permission: commandsplus.nick.preset.ocean,   style: "<gradient:#0088ff:#00ffff><message></gradient>" }

默认自带 13 种聊天预设和 13 种匹配的昵称预设。添加你自己的——只需添加一行 YAML。


两行实现品牌化

prefix: "<bold><gradient:#00ffd5:#00aaff:#a855f7>[Commands++]</gradient></bold> <gray>"

support:
  discord_invite: "https://discord.gg/your-invite"
  discord_label:  "discord.gg/your-invite"
  show_in_welcome: true

Discord 链接遍布各处——/support 命令、欢迎消息 CTA、/cmds version、引用 %discord% 的广播消息。一个字段,覆盖所有界面。

需要自定义前缀?用 &8[&bMyServer&8] &7 替换上面的 MiniMessage,解析器将回退到旧版代码。


命令

覆盖 23 个模块,共 124 条命令。

模块 命令
传送 /tpa /tpahere /tpaccept /tpdeny /tpcancel /tptoggle /tphere /tpall /tppos /tp /back /jumpto /top
家 / warp点 / 出生点 /home /sethome /delhome /homes /warp /setwarp /delwarp /warps /spawn /setspawn /randomtp
通讯 /msg /r /ignore /unignore /msgtoggle /socialspy /realname /me /mail /helpop
玩家状态 /heal /feed /fly /god /afk /nick /speed /clearinventory /whois /near /getpos /exp /suicide /ext
游戏模式 /gmc /gms /gma /gmsp /gamemode
物品栏 /enderchest /workbench /anvil /repair /more /skull /i /give /trash /enchant /condense /hat /recipe /invsee
管理 /mute /unmute /jail /unjail /setjail /jails /kick /ban /unban /tempban /banhistory /freeze /sudo /clearchat
隐身 /vanish /vanishlist
套装 /kit /kits
世界 /world /worlds /time /weather /sun /rain /thunder /pweather /ptime
工作人员 /staff add|remove|info|list|roles
经济 (Vault) /pay /payconfirm /balance /baltop /eco
管理员 /burn /lightning /firework /info
聊天 / 昵称 /chatcolor (列表 / 预设 / 重置), /nick (列表 / 预设 / 设置 / 清除)
插件 /cmds reload|modules|enable|disable|version|update

运行 /help 可获取分页式、点击即建议的游戏中菜单。运行 /cmds help 可查看对应的管理员版本。


权限

单一层级结构:commandsplus.<module>.<command>[.other|.bypass|.list|.see]。默认值符合预期意图。

节点 默认值 授予
commandsplus.admin op 通配符 — 所有操作员级别节点,包括所有渐变预设
commandsplus.<utility> true /home, /spawn, /msg, /help, /randomtp 等
commandsplus.<admin> op /heal, /mute, /jail, /vanish, /sudo 等
commandsplus.<command>.other op 目标指向另一名玩家
commandsplus.<command>.bypass op 跳过冷却时间 / 限制
commandsplus.homes.limit.<n> false 分级家数量上限 — 授予 commandsplus.homes.limit.10 可获得十个家的上限
commandsplus.chat.style.<name> false 特定预设的聊天渐变效果
commandsplus.nick.preset.<name> false 特定预设的昵称渐变效果

将 commandsplus.admin 授予你的工作人员 LuckPerms 组 — 所有管理员命令均可用,所有渐变预设解锁。


集成

所有集成为软依赖。缺少所有这些插件时,Commands++ 也能正常运行。

插件 用途
PlaceholderAPI commandsplus_* 占位符 — 家数量、AFK 状态、隐身状态、禁言/监禁剩余时间、未读邮件、延迟、在线时长
Vault + 经济提供商 /pay, /balance, /baltop, /eco, /payconfirm
LuckPerms 聊天格式前缀与后缀注入、基于组的权限管理

更新通知

启用时及每 6 小时异步轮询 Modrinth。当检测到新版本时:

  • 控制台横幅显示已安装版本 → 最新版本 + 下载链接
  • 任何拥有 commandsplus.update.notify 权限的玩家在加入服务器及每 30 分钟收到一次可点击的游戏内横幅
  • 运行 /cmds update 进行手动检查

所有频率和 slug 均位于 modules.update.* 下。


平台支持

平台 支持情况 备注
Paper 1.21+ ✅ 完全支持 原生 Adventure API
Folia ✅ 完全支持 全区域感知,处处使用 teleportAsync
Purpur 1.21+ ✅ 完全支持
Spigot 1.21+ ⚠️ 有限支持

需要 Java 21+。


安装

  1. 从 Versions 页面下载 jar 文件。
  2. 将其放入服务器的 plugins/ 文件夹中。
  3. 启动服务器。config.yml 和 messages.yml 将以合理的默认值生成。
  4. 打开 config.yml,将 support.discord_invite: 设置为你社区的链接。
  5. 运行 /cmds reload。

可选:安装 LuckPerms 以集成聊天前缀,安装 PlaceholderAPI 以使用占位符集。


链接

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源