RB 自定义命令
一款简单轻量的 Paper/Purpur 插件,适用于 Minecraft(1.21 至 1.21.11),允许服务器管理员创建最多 20 条自定义命令。当玩家执行其中一条命令时,他们会收到配置文件中定义的私聊消息。
功能特性
- 自定义命令: 在
config.yml 文件中定义最多 20 条自定义命令。
- 私聊发送: 消息以私聊形式发送给执行命令的玩家,防止聊天刷屏。
- 配置简便: 添加、修改或删除命令的配置简单直接。
- 颜色代码支持: 在消息中使用标准的 Minecraft 颜色代码(
&)。
兼容性
- Minecraft: 1.21 至 1.21.11
- 服务端软件: Paper, Purpur
安装
- 从发布页面下载最新版本的
RBCustomCommands.jar。
- 将下载的
.jar 文件放入服务端的 plugins 文件夹中。
- 重启或重载服务器以生成默认的
config.yml 文件。
- 自定义
config.yml 文件以添加你自己的命令。
配置
config.yml 文件位于 plugins/RBCustomCommands 目录中。以下是一个配置示例:
max-commands: 20
commands:
hello: "&a你好!&r"
discord: "&b加入我们的 Discord: &fdiscord.gg/yourserver&r"
rules: "&6请阅读 &e/rules&r 中的规则"
max-commands:允许的最大自定义命令数量(默认为 20)。
commands:自定义命令列表。每个命令包含一个名称(即命令本身)和一个消息(发送给玩家的文字)。
使用方法
插件安装并配置完成后,玩家可以在游戏中使用这些自定义命令。例如,如果你设置了一个名为 discord 的命令,玩家可以输入 /discord 来接收配置好的消息。
从源码构建
如果你想从源代码构建该插件,你需要:
- Java Development Kit (JDK) 17 或更高版本
- Apache Maven
要在项目根目录下构建插件,请运行以下命令:
mvn clean package
编译后的 .jar 文件将位于 target 目录中。
许可证
本项目采用 MIT 许可证授权。详情请参阅 LICENSE 文件。
RB Custom Commands
A simple and lightweight Paper/Purpur plugin for Minecraft (1.21 to 1.21.11) that allows server administrators to create up to 20 custom commands. When a player executes one of these commands, they receive a private message defined in the configuration.
Features
- Custom Commands: Define up to 20 custom commands in the
config.yml file.
- Private Messaging: Messages are sent privately to the player who executes the command, preventing chat spam.
- Easy Configuration: Simple and straightforward configuration for adding, modifying, or removing commands.
- Color Code Support: Use standard Minecraft color codes (
&) in your messages.
Compatibility
- Minecraft: 1.21 to 1.21.11
- Server Software: Paper, Purpur
Installation
- Download the latest version of
RBCustomCommands.jar from the releases page.
- Place the downloaded
.jar file into the plugins folder of your server.
- Restart or reload your server to generate the default
config.yml file.
- Customize the
config.yml file to add your own commands.
Configuration
The config.yml file is located in the plugins/RBCustomCommands directory. Here is an example configuration:
max-commands: 20
commands:
hello: "&aHello!&r"
discord: "&bJoin our Discord: &fdiscord.gg/yourserver&r"
rules: "&6Read the rules in &e/rules&r"
max-commands: The maximum number of custom commands allowed (default is 20).
commands: A list of custom commands. Each command has a name (the command itself) and a message (the text sent to the player).
Usage
Once the plugin is installed and configured, players can use the custom commands in-game. For example, if you have a command named discord, players can type /discord to receive the configured message.
Building from Source
If you want to build the plugin from the source code, you will need:
- Java Development Kit (JDK) 17 or higher
- Apache Maven
To build the plugin, run the following command in the root directory of the project:
mvn clean package
The compiled .jar file will be located in the target directory.
License
This project is licensed under the MIT License. See the LICENSE file for details.
评论 0
登录后参与评分
还没有评论,来抢沙发吧