描述

CommandOverride 允许管理员在无需学习 JAVA 的情况下创建自定义命令。
你可以为某个命令指定消息,
当玩家执行该命令时,插件便会向这些玩家发送指定的消息。
你也可以为其他命令创建别名。
支持颜色代码!
这对于 /vote 或其他信息类命令非常有用。
开发构建版本

你可以在这里找到 CommandOverride 的最新版本:
请注意,这些构建版本未经过充分测试,也未获得 BukkitDev 团队的批准。使用风险自负!
配置
命令与权限

由于本插件允许你创建自己的命令,
因此可以拥有无限数量的命令和权限。
不过它确实提供了一个重载命令的功能。
| 命令 | 描述 | 权限 | ||||
| /reloadcommands | 重载 CommandOverride 配置文件 | CommandOverride.reload |
变量

| 变量 | 示例 | 功能 | |||||
| <player> | <player> | 将被替换为执行命令的玩家名称 | |||||
| <players_online> | <players_online> | 将被替换为当前在线的玩家数量 | |||||
| <players_max> | <players_max> | 将被替换为服务器允许的最大在线玩家数量 | |||||
| [online: <permission>] | [online: permission.staff] | 将被替换为拥有该权限的所有在线玩家列表 | |||||
| <rplayer> | <rplayer> | 将被替换为服务器上随机选择的一名玩家的名称 | |||||
| [rplayer <permission>] | [rplayer permission.staff] | 将被替换为服务器上拥有指定权限的随机玩家名称 | |||||
| <arg (index)> | <arg 0> | 将被替换为玩家输入的参数。注意 Java 索引从 0 开始,此处 0 指第一个指定的参数。 | |||||
| <args (start index) - (end index)> | <args 0 - 10> | 将被替换为由空格分隔的第 0 至第 10 个参数 | |||||
| [unicode: <hexadecimal> | [unicode: 21E8] | 这将被替换为指定十六进制值所代表的 Unicode 字符。所有支持的 Unicode 完整列表 |
语法

| 变量 | 示例 | 功能 | ||||
| [permission: <permission>] | [permission: permission.cheat] | 只有当玩家拥有指定权限时,此变量之后的内容才会被执行/发送 | ||||
| [!permission: <permission>] | [!permission: permission.cheat] | 只有当玩家不拥有指定权限时,此变量之后的内容才会被执行/发送 | ||||
| [world: <World Name>] | [world: world_the_end] | 只有当玩家当前位于指定的世界时,此变量后的内容才会被执行/发送 | ||||
| [arglength smaller than X] | [arglength smaller than 2] | 只有当玩家指定的参数数量少于 X 时,此变量后的内容才会被执行/发送 | ||||
| [arglength at least X] | [arglength at least 2] | 只有当玩家指定的参数数量至少为 X 时,此变量后的内容才会被执行/发送 | ||||
| command:/<command> | command:/say hello | 使玩家执行指定的命令 | ||||
| unsafe-command:/<command> | unsafe-command:/say hello | 使玩家执行指定的命令 绕过 CommandOverride | ||||
| op-command:/<command> | op-command:/say hello | 以 OP(管理员)身份使玩家执行指定的命令 | ||||
| console:/<command> | console:/say hello | 使控制台执行指定的命令 | ||||
| broadcast:<message> | broadcast:Hello world | 向所有在线玩家发送指定消息 | ||||
| playsound <Player/all> <Sound> <Volume> <Pitch> | playsound all BLOCK_NOTE_PLING 1 1 | 向特定玩家或服务器上的所有玩家播放声音 | ||||
| broadcast[<permission>]:<message> | broadcast[permission.xyz]:Hello world | 向拥有指定权限的所有玩家发送指定消息 | ||||
| message[<player>]:<message> | message[mrCookieSlime]:Hello world | 向指定玩家发送指定消息(最好与 <arg 0> 等参数配合使用) | ||||
| WAIT <time in seconds> | WAIT 10 | 在继续之前等待给定的秒数。注意:此语法后不允许有任何内容 | ||||
| WAIT-T <time in ticks> | WAIT-T 10 | 在继续之前等待给定的刻数(1 刻 = 1/20 秒)。注意:此语法后不允许有任何内容 | ||||
| BREAK | BREAK | 将忽略所有后续消息。注意:此语法后不允许有任何内容 | ||||
| BREAK <Iterations> | BREAK 2 | 将忽略所有后续消息,除了前 2 条 | ||||
| RANDOM <amount> <total> | RANDOM 3 5 | 将从接下来的 5 行脚本中随机运行 3 行 注意:此语法后不允许有任何内容 | ||||
| [chance: <chance>] | [chance: 99] | 此语法只能与 RANDOM 语法结合使用,将其放在受 RANDOM 语法影响的所有消息之前,或者完全省略。 |
基于插件的变量

| Variable | Description | Required Plugin | ||||
| <rank-prefix> | 将被替换为你的权限组的前缀 | Vault | ||||
| <rank-suffix> | 将被替换为你的权限组的后缀 | Vault | ||||
| <money> | 将被替换为你的余额 | Vault | ||||
| <gems> | 将被替换为你的宝石数量 | PrisonGems |
源代码

你想接管这个项目吗?通过在 GitHub 上提交 Pull Requests 来开始吧!
查看 CommandOverride 的源代码,如果你想让这个项目保持活力,也许可以考虑通过提交 Pull Request 来贡献代码!
自动更新与指标收集

我所有的插件都使用了自动更新功能,以确保您始终
使用的是最新版本,并且希望是 bug 最少的版本。
如果您不希望此插件自动更新,可以在配置文件中将其关闭,
位于 "options -> auto-update: true/false"
它们还使用了一个指标系统(Metrics-System),用于收集以下信息:
一个唯一的标识符
服务器的 Java 版本
服务器是否处于离线或在线模式
插件的版本
服务器的版本
操作系统版本/名称及架构
CPU 的核心数
在线玩家数量
指标系统的版本
可以通过编辑
plugins/Plugin Metrics/config.yml 并将 opt-out 更改为 true 来退出此项服务。
Description

CommandOverride allows Admins to create custom Commands
without learning JAVA. You can specify Messages for a Command
and the plugin will then send Players these Messages when they
execute this Command.
Or you can also create Aliases for other Commands
Color Codes supported!
This can be very helpful for /vote or other informational Commands
Development Builds

Here you can find the most recent Versions of CommandOverride:
Keep in mind that these builds are not thoroughly tested and haven't been approved by the BukkitDev Team. Use them at your own risk!
Configuration

Detailed Configuration Tutorial
Command and Permissions

Well as this Plugin allows you to create your own Commands.
There can be endless Amounts of Commands and Permissions.
However it does add a reload command though.
| Command | Description | Permission | ||||
| /reloadcommands | Reloads the CommandOverride config | CommandOverride.reload |
Variables

| Variable | Example | Function | ||||
| <player> | <player> | Will be replaced with the name of the Player who executed the Command | ||||
| <players_online> | <players_online> | Will be replaced with the amount of Players who are currently playing on the Server | ||||
| <players_max> | <players_max> | Will be replaced with the maximal amount of Players who can be online on the Server | ||||
| [online: <permission>] | [online: permission.staff] | Will be replaced with a list of all online players who have this permission | ||||
| <rplayer> | <rplayer> | Will be replaced with the Name of a randomly chosen Player on the Server | ||||
| [rplayer <permission>] | [rplayer permission.staff] | Will be replaced with the Name of a randomly chosen Player on the Server who has that Permission | ||||
| <arg (index)> | <arg 0> | Will be replaced with an argument entered by the Player. Note here that Java is zero-indexed. 0 refers to the first specified argument here. | ||||
| <args (start index) - (end index)> | <args 0 - 10> | Will be replaced with the Arguments 0 - 10 seperated with a Space | ||||
| [unicode: <hexadecimal> | [unicode: 21E8] | This will be replaced with the Unicode represented by the specified Hexadecimal. A full list of all supported Unicodes |
Syntaxes

| Variable | Example | Function | ||||
| [permission: <permission>] | [permission: permission.cheat] | Whatever stands behind this Variable will only be executed/sent if the Player has the specified Permission | ||||
| [!permission: <permission>] | [!permission: permission.cheat] | Whatever stands behind this Variable will only be executed/sent if the Player does not have the specified Permission | ||||
| [world: <World Name>] | [world: world_the_end] | Whatever stands behind this Variable will only be executed/sent if the Player is currently in the specified World | ||||
| [arglength smaller than X] | [arglength smaller than 2] | Whatever stands behind this Variable will only be executed/sent if the Player specified less than X arguments | ||||
| [arglength at least X] | [arglength at least 2] | Whatever stands behind this Variable will only be executed/sent if the Player specified at least X arguments | ||||
| command:/<command> | command:/say hello | Makes the Player execute the specified Command | ||||
| unsafe-command:/<command> | unsafe-command:/say hello | Makes the Player execute the specified Command Bypasses CommandOverride | ||||
| op-command:/<command> | op-command:/say hello | Makes the Player execute the specified Command as an Op | ||||
| console:/<command> | console:/say hello | Makes the Console execute the specified Command | ||||
| broadcast:<message> | broadcast:Hello world | Sends the specified Message to all online Players | ||||
| playsound <Player/all> <Sound> <Volume> <Pitch> | playsound all BLOCK_NOTE_PLING 1 1 | Plays a Sound to a specific Player or all Players on the Server | ||||
| broadcast[<permission>]:<message> | broadcast[permission.xyz]:Hello world | Sends the specified message to all Players who have the specified permission | ||||
| message[<player>]:<message> | message[mrCookieSlime]:Hello world | Sends the specified message to the specified player (Best used with arguments like <arg 0> | ||||
| WAIT <time in seconds> | WAIT 10 | This will wait the given amount of seconds before it will continue. Note that nothing is allowed to stand after this syntax | ||||
| WAIT-T <time in ticks> | WAIT-T 10 | This will wait the given amount of ticks (1 Tick = 1/20 Second) before it will continue. Note that nothing is allowed to stand after this syntax | ||||
| BREAK | BREAK | Will ignore all following messages. Note that nothing is allowed to stand after this syntax | ||||
| BREAK <Iterations> | BREAK 2 | Will ignore all following messages except for the first 2 | ||||
| RANDOM <amount> <total> | RANDOM 3 5 | Will only run 3 random lines of the Script from the following 5 lines Note that nothing is allowed to stand after this syntax | ||||
| [chance: <chance>] | [chance: 99] | This Syntax can only be used in combination with the RANDOM syntax, put it in front of either all your messages which are affected by the RANDOM syntax or leave it out completely. |
Plugin-based Variables

| Variable | Description | Required Plugin | ||||
| <rank-prefix> | Will be replaced with the prefix of your permissions group | Vault | ||||
| <rank-suffix> | Will be replaced with the suffix of your permissions group | Vault | ||||
| <money> | Will be replaced with your Balance | Vault | ||||
| <gems> | Will be replaced with your Gems | PrisonGems |
Source Code

You want to take over this Project? Start so by submitting Pull Requests on GitHub!
Check out CommandOverride's Source Code, if you want to keep this Project alive, maybe even consider contributing to it by making a Pull Request!
Auto-Updater and Metrics

All my Plugins are using an Auto-Updater to make sure, you're always
using the latest and hopefully most bug free version of my Plugin.
If you don't want this Plugin to be auto-updated, you can turn it off
in the config file at "options -> auto-update: true/false"
They also use a Metrics-System which collects the following Informations:
A unique identifier
The server's version of Java
Whether the server is in offline or online mode
The plugin's version
The server's version
The OS version/name and architecture
The core count for the CPU
The number of players online
The Metrics version
Opting out of this service can be done by editing
plugins/Plugin Metrics/config.yml and changing opt-out to true.
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
下载 CommandOverride
1.8 版本
+ 添加了 bStats Metrics
+ 添加了 PlaceholderAPI 支持
- 移除了 CS-CoreLib 作为依赖项
(据报道,旧版本在 MC 1.12-1.14 上也能运行,但仍已更新以使用最新的 Bukkit 版本)
1.7 版本
+ 添加了对 Minecraft v1.8、1.9、1.10 的支持
- 错误修复
1.4.12 版本
- 更新至 PrisonGems v1.1.2
1.4.11 版本
+ 添加了 [world: <世界名称>] 语法
+ 添加了 <args (起始索引) - (结束索引)> 变量
- 错误修复
修复了费用和冷却时间互不干扰的问题
1.4.10 版本
- 错误修复
修复了各种费用未能按预期工作的问题
1.4.9 版本
- 错误修复
修复了费用与冷却时间不兼容的问题
1.4.8 版本
+ 添加了 <rplayer> 变量
+ 添加了 [rplayer <权限>] 变量
1.4.7 版本
- 修复了默认 config.yml 中的拼写错误
1.4.6 版本
+ 添加了禁用自定义“未知命令”消息的选项
1.4.5 版本
+ 添加了可定制的“未知命令”消息
1.4.4 版本
- 错误修复
修复了命令有时不允许进行多次权限检查的问题
1.4.3 版本
+ 添加了 BREAK <迭代次数> 语法
1.4.1 版本
+ 添加了 [chance: <概率>] 语法
1.4.0 版本
+ 添加了 RANDOM 语法
+ 添加了 unsafe-command:/<命令> 语法
+ 添加了 <players_online> 变量
+ 添加了 <players_max> 变量
- 将插件的不同功能分离到各自的 .yml 文件中
- 更新至最新版本的 CS-CoreLib
- 更新至最新版本的 PrisonGems
1.3.5 版本
+ 添加了 <gems> 变量
- 控制台命令现在可以使用 & 配合颜色代码执行
- 更新至最新版本的 PrisonGems
1.3.4 版本
+ 添加了 message[<玩家>]:<消息> 语法
+ 添加了 [!permission:<权限>] 语法
1.3.2 版本
- 错误修复
修复了 plugin.yml
1.3.1 版本
+ 添加了 /reloadcommands
+ 添加了 BREAK 语法
+ 添加了 <rank-prefix> 变量
+ 添加了 <rank-suffix> 变量
+ 添加了 <money> 变量
+ 添加了经验等级费用
+ 添加了最少参数数量限制
+ 添加了用法提示消息
+ 添加了 broadcast[permission.XYZ]: 语法
1.3 版本
+ 添加了 Unicode 支持:[unicode: <十六进制值>]
+ 添加了宝石费用(需要 PrisonGems)
+ 添加了金钱费用(需要 Vault)
- CS-CoreLib 现在是外部下载项。如果未找到它,它将自动下载
1.2.8 版本
+ 添加了冷却时间变量 %command%
+ 添加了 WAIT 语法
- 错误修复
修复了 command:/ 无法正确执行的问题
1.2.7 版本
+ 添加了创建命令冷却时间的功能
1.2.6 版本
- 错误修复
修复了版本问题
修复了变量问题
修复了使用 : 的问题(例如:/bukkit:plugins 不被识别,只有 /plugins 可以识别)
1.2.5 版本
+ 添加了 <arg (索引)>
+ 添加了命令限制(您可以将命令限制为特定权限)
1.2.4 版本
+ 添加了 op-command:/<命令>(以管理员身份运行命令)
1.2.3 版本
+ 添加了 broadcast:<消息>
1.2.2 版本
+ 添加了标签 [permission: permission.XYZ]
1.2.1 版本
- 性能改进
- (希望)修复了 Spigot 的一个错误
1.2 版本
+ 添加了变量:<玩家>
+ 添加了别名功能
+ 添加了变量:[online: permission.XYZ]
+ 添加了控制台命令:console:/
1.1.1 版本
- 修复了一个错误,使您现在也能为 CO 命令创建别名。
1.1 版本
+ 您现在还可以让其他玩家运行命令
1.0 版本
发布
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧