- 积分
- 10244
- 帖子
- 主题
- 精华
贡献- 份
爱心- 心
- 钻石
- 颗
- 人气
- 点
- 下界之星
- 枚
- 最后登录
- 1970-1-1
- 注册时间
- 2020-1-30
来自:福建 | 本帖最后由 DreamVoid 于 2021-9-6 23:09 编辑
授权搬运
这是什么/What is this? 是否苦恼于关闭BC端下的某个子服后玩家会直接掉线从而流失玩家?抑或是苦恼于只能输入hub这种固定指令传送到大厅?这款插件即可简单的解决问题! 只需要在BungeeCord上安装此插件并配置,即可在一个子服关闭时重定向玩家到其他子服,非常适合带有多种游戏模式的群组服。 我翻遍了MCBBS都没找到此插件的搬运,因此决定搬运这款好用的插件分享给大家
功能/Features
- 玩家被一个子服踢出时传送玩家到其他子服(比如子服关闭/重启时)
- 在聊天中显示被踢原因
- 支持设置服务器组,以让玩家重定向到想要重定向的子服
- 支持设置自定义指令,例如设置“/skywars”让玩家传送到skywars(空岛战争)大厅(同时可以用于传送到主大厅)
- 子服关闭时,将玩家分散到各个大厅服务器
- 将某些操作列入黑名单(例如被反作弊踢出),以免错误的重定向玩家
- 使用权限节点限制某些服务器组的传送
- 防止被大厅服务器踢出时的重定向
不同的重定向模式:
- PROGRESSIVE : 首先将玩家们传送到第一个服务器,当第一个服务器人数达到“progressive-minimal”中设定的值,将剩下的玩家传送到第二个服务器,以此类推。如果所有服务器的人数都达到了设定的值,将会使用LOWEST模式继续重定向玩家
- CYCLE : 循环传送玩家们到每个服务器。这可能导致玩家重定向到先前所在的服务器
- LOWEST : 将玩家们传送到在线人数最少的服务器
- HIGHEST : 将玩家们传送到在线人数最多的服务器. (不推荐!)
复制代码
开始使用/Set-Up
- 下载插件文件
- 将插件放在BungeeCord的plugins目录
- 开启一次BungeeCord端,然后关闭
- 调整config.yml配置文件
- 开启BungeeCord端,然后享受插件强大的功能吧!
权限节点/Permissions 当前插件只有一个权限,确保你和/或服务器管理员拥有此权限:
命令/Commands
- /rd - 显示插件信息
- /rd help - 显示帮助菜单
- /rd servers - 显示所有子服的信息
- /rd groups - 显示所有服务器组的信息
- /rd refresh - 刷新所有服务器信息
- /rd reload - 重载配置文件
复制代码
配置文件/Config config.yml(原始):
- # All the messages send by the plugin.
- messages:
- # Supported placeholders for 'redirected' message:
- # %from-server% %to-server% %from-group% %to-group% %reason%
- redirected:
- - "&f"
- - "&cAn kick occurred in your connection. &cReason:&r %reason%"
- - "&cYou have been send back to the main lobby."
- - "&f"
- unable-redirect-alias:
- - "&f"
- - "&cUnable to send you. All servers in that category are unavailable."
- - "&f"
- unable-redirect-alias-same-category:
- - "&f"
- - "&cUnable to send you to another server in this category."
- - "&f"
- alias-no-permission:
- - "&cYou don't have enough permissions to join this server group."
- alias-not-allowed-server:
- - "&cYou cannot use that command here!"
- # The amount of time between checking if a server is online.
- # Players won't be connected to offline servers.
- check: 30
- # The delay that is given to the redirect message.
- # When you have a lot of messages when a player joins a certain server this can help to make sure that the redirectplus messages shows as 'newest'.
- # The delay is in seconds.
- delay: 0
- # Blacklist. When a kick message contains this word they will NOT get redirected.
- # This will result in the player seeing the kick screen.
- blacklist:
- - "ban"
- # Detect shutdown in server kick messages
- # This can be faster for when you want to shutdowns servers and using RedirectPlus to redirectplus those people.
- detect-shutdown:
- enabled: true
- messages:
- - "shutdown"
- - "restart"
- - "closed"
- # Don't show the redirect message if the message contains one of the following words.
- # Can be useful when redirecting people from a game lobby and stuff.
- no-messages:
- - "[Silent]"
- # Disable the uses of aliases on specific servers.
- # Useful when having auth servers and AuthMe is not installed on the BungeeCord
- disable-aliases:
- # A list of servers to disable the aliases on.
- servers:
- - someserver1
- - someserver2
- # Regex to identify these servers.
- regex: "none"
- # unknown-group / server
- # This will redirect unknown servers to the group listed here:
- unknown-group: lobby
- # Specify defaults here. You can overwrite these settings by adding them to groups them self.
- global:
- # Spread modes:
- # PROGRESSIVE : Fill the server to the progressive-minimal amount, after that fill the next one, giving nicely populated lobbies. Uses LOWEST when the minimal is reached on all servers.
- # CYCLE : Cycle to the server to spread the load as much as possible. This can result in players being in a server on their own.
- # LOWEST : Send the player to the server with the lowest amount of players online.
- # HIGHEST : Send the players to the server with the highest amount of players. (Not adviced!)
- spread-mode: PROGRESSIVE
- # The minimal amount of players that are on a server before the next server gets selected.
- progressive-minimal: 20
- # Server groups and their settings
- groups:
- lobby:
- # If kicked from this server group, no redirects will happen.
- bottom-kick: true
- # Spread redirected people over the servers.
- spread: true
- # Spread mode, if spread is enabled, use the following spread mode (will overwrite global if used).
- spread-mode: PROGRESSIVE
- # The minimal amount of players that are on a server before the next server gets selected. (only used for PROGRESSIVE spread)
- progressive-minimal: 20
- # Parent group - If none of the servers are available, the parent group will be used.
- # Set to none if none. If the parent server group is needed the player will be kicked instead.
- parent-group: none
- servers:
- - lobby1
- - lobby2
- servers-regex: 'none'
- # Servers that are connected to this group, but they won't be redirected to:
- connected: {}
- connected-regex: 'none'
- # Aliases can be used to redirect people to the server group when they use a certain command (Eg: lobby, hub, survival, towny, etc)
- aliases: {}
- games:
- bottom-kick: false
- spread: true
- parent-group: lobby
- # These servers do not have lobbies them self so we use a parent group.
- servers: {}
- servers-regex: 'none'
- connected:
- - survival
- - pvp
- connected-regex: 'none'
- # Aliases can be used to redirect people to the server group when they use a certain command (Eg: lobby, hub, survival, towny, etc)
- aliases:
- - games
- # Log settings, this will show your messages in console so you know what's going on.
- log:
- # If set to true the plugin will log redirects attempts that are canceled due to blacklisted words.
- blacklist: true
- # If set to true the plugin will log redirects that fail because no server was found.
- redirect-failed: true
- # If set to true the plugin will log players that do not get redirected due to the bottom-kick setting enabled.
- bottom-kick: false
- # If set to true the plugin will log successful redirect attempts.
- redirected: true
- # If set to true the plugin will log any cancelled redirect attempts due to inactive connections.
- inactive: true
- # EXAMPLE SETUP
- #groups:
- # # The main lobby. If kicked from here they should not be redirected so we enable bottom-kick.
- # # There are no connected servers here.
- # main-lobby:
- # bottom-kick: true
- # spread: true
- # parent-group: none
- # servers:
- # - lobby1
- # - lobby2
- # - lobby3
- # connected: {}
- # # Aliases can be used to redirect people to the server group when they use a certain command (Eg: lobby, hub, survival, towny, etc)
- # aliases:
- # - lobbies
- # - lobby
- # # This is the survival games group.
- # # bottom-kick is false, since we want redirects from the connected servers.
- # # The lobby servers are in the 'servers' list (so they will be redirected to) and the game servers are in the 'connected' list.
- # survivalgames:
- # bottom-kick: false
- # spread: true
- # parent-group: none
- # permission: server.survivalgames
- # servers:
- # - sg-lobby-1
- # - sg-lobby-2
- # connected:
- # - sg-game-1
- # - sg-game-2
- # - sg-game-3
- # - sg-game-4
- # - sg-game-5
- # # Aliases can be used to redirect people to the server group when they use a certain command (Eg: lobby, hub, survival, towny, etc)
- # aliases:
- # - survivalgames
- # - sg
复制代码 |
config.yml(楼主的汉化):
- # Redirect Plus - config.yml - 翻译:DreamVoid
- # 翻译说明:由译者补充的文字将加上“译者注”,译者翻译原则为“直译为主,意译为辅”,因此部分语句的顺序于原文不同,意思与原文也有小小的出入
- # 插件所发送的所有消息内容
- messages:
- # 消息中支持的变量占位符:
- # %from-server% %to-server% %from-group% %to-group% %reason%
- # 译者注:从左到右分别是“被踢的服务器”,“传送到的服务器”,“被踢服务器所在的服务器组”,“传送到的服务器所在的服务器组”,“被踢原因”
- redirected:
- - "&f"
- - "&c你的连接出现异常 &c原因:&r %reason%"
- - "&c你已被传送到主大厅."
- - "&f"
- unable-redirect-alias:
- - "&f"
- - "&c无法传送你到指定的服务器组,所有的服务器均不可用."
- - "&f"
- unable-redirect-alias-same-category:
- - "&f"
- - "&c无法将你传送到另一服务器."
- - "&f"
- alias-no-permission:
- - "&c你没有足够的权限加入此服务器组."
- alias-not-allowed-server:
- - "&c你不能在此服务器使用指令!"
- # 检查子服是否在线的时间间隔
- # 玩家将不会传送到离线服务器.
- check: 30
- # 发送提示消息的延迟.
- # 如果玩家加入一个服务器后会收到大量的聊天提示消息,此项有助于本插件发送的消息为“最新”的.
- # 单位:秒
- delay: 0
- # 屏蔽词。如果服务器提供的被踢原因包含以下单词,将不会传送玩家到任何服务器
- # 玩家将断开连接并在“连接已丢失”的画面看到被踢原因
- blacklist:
- - "ban"
- # 检测服务器提供的被踢原因是否包含服务器已关闭的特征
- # 当你想要关闭一个服务器并准备使用本插件重定向里面的玩家时,这样做将会更快
- detect-shutdown:
- enabled: true
- messages:
- - "shutdown"
- - "restart"
- - "closed"
- # 如果服务器提供的被踢原因中包含以下单词,将不会显示重定向消息
- # 在重定向小游戏大厅或其他服务器的玩家时非常有用
- no-messages:
- - "[Silent]"
- # 在指定的服务器上禁用指令传送
- # 在需要使用登录插件并且没有在BungeeCord安装AuthMe等登录插件的服务器上非常有用
- disable-aliases:
- # 禁用指令的服务器列表
- servers:
- - someserver1
- - someserver2
- # 禁用指令的服务器[正则表达式]
- regex: "none"
- # 未知服务器 / 服务器组
- # 如果被踢出的服务器没有在本配置文件中列出,玩家将会传送到指定的服务器组:
- unknown-group: lobby
- # 全局设置。你可以将这些设置添加到服务器组里来覆盖此处的设置
- global:
- # 重定向模式:
- # 译者注:下文所说的“服务器”/“所有服务器”指的是玩家将会传送到的【服务器组】里的服务器/所有服务器,而【不是】BungeeCord上的所有子服
- # PROGRESSIVE : 首先将玩家们传送到第一个服务器,当第一个服务器人数达到“progressive-minimal”中设定的值,将剩下的玩家传送到第二个服务器,以此类推。如果所有服务器的人数都达到了设定的值,将会使用LOWEST模式继续重定向玩家
- # CYCLE : 循环传送玩家们到每个服务器。这可能导致玩家重定向到先前所在的服务器
- # LOWEST : 将玩家们传送到在线人数最少的服务器
- # HIGHEST : 将玩家们传送到在线人数最多的服务器. (不推荐!)
- spread-mode: PROGRESSIVE
- # 当服务器的最小在线人数达到设定值后,将剩余玩家传送到下一个服务器
- progressive-minimal: 20
- # 服务器组和设置
- groups:
- lobby: # 译者注:此处为自定义的服务器组名字,可以使用中文
- # 如果玩家在这个组里的服务器中被踢出,不重定向玩家
- bottom-kick: true
- # 允许被重定向的玩家传送到这里的服务器
- spread: true
- # 重定向模式, 如果spread为true, 将使用指定的传送模式 (如果指定,将覆盖全局设置)).
- spread-mode: PROGRESSIVE
- # 当服务器的最小在线人数达到设定值后,将剩余玩家传送到下一个服务器. (仅在使用 PROGRESSIVE 模式时用到)
- progressive-minimal: 20
- # 父服务器组 - 如果当前服务器组没有服务器可用,将玩家传送到父服务器组的服务器
- # 设为none来关闭父组功能. 如果重定向时没有可用服务器,将直接断开玩家的连接.
- parent-group: none
- servers: # 译者注:属于本服务器组的服务器
- - lobby1
- - lobby2
- servers-regex: 'none' # 译者注:正则表达式,符合这个正则表达式的服务器名字都会被视为此服务器组的服务器
- # 属于此组的服务器,但是重定向时不会将玩家传送到这里的服务器:
- connected: {}
- connected-regex: 'none' # 译者注:正则表达式,用法同上
- # 指令别名。当玩家输入指定的命令时,将输入命令的玩家传送到此组列出的服务器 (例如: lobby, hub, survival, towny, 等等)
- # 译者注:可以设置多个,输入任意一个即可传送。例如设置为lobby,那么游戏内玩家输入/lobby指令时,就会将玩家传送到此服务器组的服务器
- aliases: {}
- games:
- bottom-kick: false
- spread: true
- parent-group: lobby
- # 如果这类服务器没有自己的大厅,我们可以指定一个父服务器组
- servers: {}
- servers-regex: 'none'
- connected:
- - survival
- - pvp
- connected-regex: 'none'
- # 指令别名。当玩家输入指定的命令时,将输入命令的玩家传送到此组列出的服务器 (例如: lobby, hub, survival, towny, 等等)
- aliases:
- - games
- # 日志设置。插件将会在控制台显示日志,这样你就可以知道发生了什么
- log:
- # 如果设为true,插件将会记录因被屏蔽的单词而取消的重定向
- blacklist: true
- # 如果设为true,插件将会记录因找不到可用于重定向的服务器而取消的重定向
- redirect-failed: true
- # 如果设为true,插件将会记录玩家被带有bottom-kick设置的服务器组踢出
- bottom-kick: false
- # 如果设为true,插件将会记录成功的重定向
- redirected: true
- # 如果设为true,插件将会记录因无法连接服务器而取消的重定向
- inactive: true
- # 设置例子
- # 译者注,这里是作者用来演示实际的重定向配置的部分
- #groups:
- # # 这是主大厅服务器组. 如果玩家被这里的服务器踢出不会发生重定向,因此我们打开bottom-kick.
- # # 这里没有不想让玩家传送到的服务器(或者说这里的服务器都可以让玩家进入)(connected)
- # main-lobby:
- # bottom-kick: true
- # spread: true
- # parent-group: none
- # servers:
- # - lobby1
- # - lobby2
- # - lobby3
- # connected: {}
- # # 指令别名。当玩家输入指定的命令时,将输入命令的玩家传送到此组列出的服务器 (例如: lobby, hub, survival, towny, 等等)
- # aliases:
- # - lobbies
- # - lobby
- # # 这是生存小游戏的服务器组
- # # bottom-kick设为false, 因为我们要重定向在此服务器组的玩家.
- # # 小游戏的大厅服添加到 'servers' 列表 (这样玩家就可以重定向到这里) ,然后把小游戏的子服添加到 'connected' 列表.
- # survivalgames:
- # bottom-kick: false
- # spread: true
- # parent-group: none
- # permission: server.survivalgames # 译者注:重定向到这里需要的权限,可自定义,但是只检查玩家在【BC端】是否拥有权限而不会检查玩家在子服是否拥有权限
- # servers:
- # - sg-lobby-1
- # - sg-lobby-2
- # connected:
- # - sg-game-1
- # - sg-game-2
- # - sg-game-3
- # - sg-game-4
- # - sg-game-5
- # # 指令别名。当玩家输入指定的命令时,将输入命令的玩家传送到此组列出的服务器 (例如: lobby, hub, survival, towny, 等等)
- # aliases:
- # - survivalgames
- # - sg
复制代码 |
图片/Pictures 插件信息及帮助菜单:

服务器信息(**处为楼主服务器名):

服务器组信息。绿色为在线服务器,红色为离线服务器:

重定向时发送给玩家的信息(白字为子服给出的踢出原因):

下载/Download 支持作者,请前往SpigotMC下载 汉化的配置文件:
config.yml
(7.9 KB, 下载次数: 73)
源代码/Source Code 此插件为开源插件,源代码托管于Github:https://github.com/MartenM/RedirectPlus
最后/The End... 如果你有任何好的建议,可以向作者提出(如果你在这里回帖,我可以帮你转告作者) 如果你觉得这个插件不错,请考虑捐赠作者 如果你觉得我搬运的不错,请考虑给我一点人气 感谢你看完了此贴! |
评分查看全部评分
|