SmartRejoin for Velocity
SmartRejoin 是一个现代化的重连插件替代方案,采用高度可定制的规则引擎构建。
功能特性
- ? 自动将玩家发送回他们断开连接的服务器。
- ⚙️ 基于玩家的上一台服务器定义自定义规则。例如,将来自
bedwars_游戏的玩家发送到玩家数量最多的bedwars_lobby。 - ⚖️ 通过将玩家连接到玩家数量最多、最少或随机的服务器,在多个大厅之间分发玩家。
- ?️ 为新玩家或目标服务器离线时配置安全回退服务器(或服务器池)。
- ⚡ 通过简单命令即时重载配置。
安装
- 下载该插件
- 将插件放入 Velocity 代理的
/plugins目录中。 - 重启你的 Velocity 代理。将在
/plugins/SmartRejoin/目录下生成一个config.yml文件。
命令与权限
| 命令 | 别名 | 权限 | 描述 |
|---|---|---|---|
/smartrejoinreload |
/srr |
smartrejoin.command.reload |
重新加载 config.yml 文件。 |
配置 (config.yml)
配置分为三个主要部分:Fallback(回退)、Default Rule(默认规则) 和 Custom Rules(自定义规则)。
快速开始
最简单的设置只需安装插件即可。默认情况下(rule: SAME),它会自动将玩家重新连接回他们离开的服务器。新玩家将由你的 velocity.toml 配置处理。若要使用插件的新玩家回退功能,请设置 fallback.enabled: true。
用例示例
- BedWars 大厅:如果玩家离开
bedwars_12,将他们发送到玩家数量最多的bedwars_lobby。 - 持久生存模式:如果玩家离开
survival,始终将他们发送回survival。 - 随机大厅:如果玩家曾在任何
lobby_服务器中,将他们发送到另一个随机的lobby_服务器。 - AFK 逃离:如果玩家曾在
afk服务器中,将他们发送到玩家数量最少的lobby。
完整配置示例(不同于默认值!)
# --------------------------------------------------- #
# SmartRejoin Configuration #
# --------------------------------------------------- #
# --- General Settings ---
settings:
# If true, the plugin will print informational messages to the console.
# Critical errors are always logged.
logging_enabled: true
# --- Fallback Configuration ---
# Used for new players or when a target server from a rule is offline.
fallback:
# If 'enabled', this plugin's fallback logic will be used.
enabled: true
# 'RANDOM': Connects to a random server whose name CONTAINS the 'name' value.
# 'SERVER': Connects to a specific server with an exact 'name'.
type: RANDOM
name: "lobby"
# --- Default Rule ---
# Applied if a player's last server doesn't match any custom rules below.
default:
# 'SAME': Connects to the exact same server. (Most common)
# 'FALLBACK': Immediately uses the fallback rule.
# 'SMART': Finds a related lobby. See comments below for details.
rule: SAME
# Arguments for the 'SMART' rule.
# Example: ['MOST', '%last_seen%_lobby']
arguments: []
# --- Custom Rules ---
# Define specific redirection rules here. They are checked in order.
rules:
stay_on_survival:
last_seen:
# Condition: Player's last server name must be an exact match.
type: EQUALS
name: "survival"
where_to_join:
# Action: Connect to a server with this exact name.
type: EQUALS
name: "survival"
bedwars_lobby_fallback:
last_seen:
# Condition: Player's last server name must contain "bedwars".
type: CONTAINS
name: "bedwars"
where_to_join:
# Action: Find all online servers containing "bedwars_lobby" and
# connect to the one with the MOST players.
type: MOST
name: "bedwars_lobby"
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧