RedirectorPlus
一个独立的 Paper 1.21.11 插件,允许服务器管理员创建和管理服务器连接信息。
功能
- 创建连接:定义带有 IP 和端口的命名服务器连接
- 查看连接信息:向玩家显示服务器详情
- 管理连接:列出、删除和管理所有服务器配置
- Tab 补全:支持所有命令的完整 Tab 补全
- 持久化存储:连接数据会自动保存和加载
- 无需代理:作为独立插件运行(不需要 BungeeCord/Velocity)
命令
创建连接
创建新的服务器连接配置。
用法: /rdplus create <name> <ip> [port]
<name>:连接名称(包含空格时请使用引号)
<ip>:服务器 IP 地址或主机名
[port]:服务器端口(默认:25565)
示例:
/rdplus create "Main Server" play.example.com
/rdplus create "Creative Server" 192.168.1.100 25566
查看连接
向执行命令的玩家显示指定服务器的连接信息。
用法: /rdplus redirect <name>
玩家可以手动使用提供的地址将此服务器添加到他们的多人游戏列表中。
示例:
/rdplus redirect "Main Server"
输出:
==== Server Connection Info ====
Server: Main Server
Address: play.example.com
To connect, add this server to your multiplayer list:
play.example.com
/rdplus list
列出所有已配置的服务器连接及其地址。
/rdplus delete <name>
删除服务器连接配置。
示例:
/rdplus delete "Test Server"
/rdplus help
显示包含所有可用命令的帮助信息。
权限
- redirectorplus.admin:允许玩家使用 RedirectorPlus 命令(默认:op)
构建
这是一个 Maven 项目。构建方法如下:
mvn clean package
编译后的插件 JAR 文件将位于 target/ 目录中。
安装
- 使用 Maven 构建插件
- 将 JAR 文件复制到 Paper 服务器的
plugins/ 目录
- 重启服务器
- 使用
/rdplus create 命令配置连接
配置
连接数据会自动保存到 plugins/RedirectorPlus/connections.yml,并在服务器启动时加载。
connections.yml 示例
connections:
Main Server:
ip: play.example.com
port: 25565
Creative Server:
ip: 192.168.1.100
port: 25566
要求
- Paper 1.21.11 或更高版本
- Java 17 或更高版本
工作原理
这是一个独立插件,不需要像 BungeeCord 或 Velocity 这样的代理。它存储服务器连接信息并向玩家显示,允许他们通过将其他服务器添加到多人游戏列表来手动连接到这些服务器。
当玩家使用 /rdplus redirect [name] 时,他们会收到格式化的连接信息,可用于连接到该服务器。
RedirectorPlus
A standalone Paper 1.21.11 plugin that allows server administrators to create and manage server connection information.
Features
- Create Connections: Define named server connections with IP and port
- View Connection Info: Display server details to players
- Manage Connections: List, delete, and manage all server configurations
- Tab Completion: Full tab completion support for all commands
- Persistent Storage: Connections are saved and loaded automatically
- No Proxy Required: Works as a standalone plugin (no BungeeCord/Velocity needed)
Commands
Create Connection
Creates a new server connection configuration.
Usage: /rdplus create <name> <ip> [port]
<name>: Connection name (use quotes for names with spaces)
<ip>: Server IP address or hostname
[port]: Server port (default: 25565)
Example:
/rdplus create "Main Server" play.example.com
/rdplus create "Creative Server" 192.168.1.100 25566
View Connection
Displays connection information for the specified server to the executing player.
Usage: /rdplus redirect <name>
Players can manually add this server to their multiplayer list using the provided address.
Example:
/rdplus redirect "Main Server"
Output:
==== Server Connection Info ====
Server: Main Server
Address: play.example.com
To connect, add this server to your multiplayer list:
play.example.com
/rdplus list
Lists all configured server connections with their addresses.
/rdplus delete <name>
Deletes a server connection configuration.
Example:
/rdplus delete "Test Server"
/rdplus help
Shows help information with all available commands.
Permissions
- redirectorplus.admin: Allows player to use RedirectorPlus commands (default: op)
Building
This is a Maven project. To build:
mvn clean package
The compiled plugin JAR will be in the target/ directory.
Installation
- Build the plugin using Maven
- Copy the JAR file to your Paper server's
plugins/ directory
- Restart the server
- Configure connections using the
/rdplus create command
Configuration
Connections are automatically saved to plugins/RedirectorPlus/connections.yml and loaded on server startup.
connections.yml Example
connections:
Main Server:
ip: play.example.com
port: 25565
Creative Server:
ip: 192.168.1.100
port: 25566
Requirements
- Paper 1.21.11 or later
- Java 17 or later
How It Works
This is a standalone plugin that doesn't require a proxy like BungeeCord or Velocity. It stores server connection information and displays it to players, allowing them to manually connect to other servers by adding them to their multiplayer list.
When a player uses /rdplus redirect [name], they receive formatted connection information they can use to connect to that server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧