SmartRejoin

插件

· 作者 RealKomander1

一个 Velocity 插件,让你完全控制玩家加入网络时连接的服务器。

0 本站下载 0 关注 更新于 2 周前

最新 1.4.2 · 26.3 · Velocity

一键开服(送7天)

SmartRejoin for Velocity

SmartRejoin 是一个现代化的重连插件替代方案,采用高度可定制的规则引擎构建。


功能特性

  • ? 自动将玩家发送回他们断开连接的服务器。
  • ⚙️ 基于玩家的上一台服务器定义自定义规则。例如,将来自 bedwars_ 游戏的玩家发送到玩家数量最多的 bedwars_lobby。
  • ⚖️ 通过将玩家连接到玩家数量最多、最少或随机的服务器,在多个大厅之间分发玩家。
  • ?️ 为新玩家或目标服务器离线时配置安全回退服务器(或服务器池)。
  • ⚡ 通过简单命令即时重载配置。

安装

  1. 下载该插件
  2. 将插件放入 Velocity 代理的 /plugins 目录中。
  3. 重启你的 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"

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源