需要 MySQL!
JSMySQLFix 是 Velocity 版本所必需的
ServerSwitch 是一款多功能插件,专为 BungeeCord 和 Spigot 服务器设计,提供全面的服务器切换日志记录功能,并作为 OnlyProxyJoin 的替代方案。使用 ServerSwitch,您可以轻松追踪玩家的服务器切换情况并自定义其加入体验,从而增强您的服务器网络管理能力。
功能:
- 服务器切换日志记录:ServerSwitch 将玩家服务器切换记录到 MySQL 数据库中,为 BungeeCord 和 Spigot 服务器上的玩家行为及服务器流量模式提供有价值的见解。
- OnlyProxyJoin 替代方案:用 ServerSwitch 替换 OnlyProxyJoin,以控制玩家加入并根据特定条件实施自定义加入消息和操作,满足您服务器网络的需求。
- 自动清理:该插件包含自动删除旧服务器切换记录的功能,确保 BungeeCord 和 Spigot 服务器的数据库性能和存储效率达到最佳状态。
- 可配置的设置:通过包含的配置文件轻松配置 MySQL 连接设置、加入消息及其他插件选项,为您的服务器网络设置提供灵活性和定制化支持。
- 轻量且高效:ServerSwitch 轻量级且注重效率,确保对 BungeeCord 和 Spigot 服务器的性能影响降至最低,同时提供强大的服务器切换日志记录和玩家加入管理功能。
说明:
- 将 serverswitch.jar 文件放入 BungeeCord 和 Spigot 服务器的 plugins 文件夹中。
- 在两个服务器类型的插件文件夹中的 config.yml 文件中自定义插件设置,包括 MySQL 连接详情和加入消息。
- 重启 BungeeCord 和 Spigot 服务器以应用更改。
- ServerSwitch 现在将根据您在 BungeeCord 和 Spigot 服务器上配置的设置记录玩家服务器切换并处理玩家加入。
立即使用 ServerSwitch 提升您的服务器网络管理能力,并为玩家提供无缝的加入体验!
config.yml
# 连接到您的数据库!(必需!)
database:
url: "jdbc:mysql://127.0.0.1:3306/YourDB" # 在此处设置信息
username: "root"
password: "password"
# 您必须设置一个服务器名称!服务器名称必须与此服务器在 BungeeCord 中的名称相同!!
server:
# 您必须设置一个服务器名称!服务器名称必须与此服务器在 BungeeCord 中的名称相同!!
servername: "SETITHERE!" # 示例:servername: "Lobby-01"
# 设置自定义消息和权限
messages:
kick: '§c您需要通过代理加入!'
staff_notification: '§c{player} 尝试不经过代理直接加入!'
joinMessage: '§e{player} 加入了服务器'
leaveMessage: '§e{player} 离开了服务器'
permissions:
notify: 'serverswitch.notify' # 在此处设置权限
settings:
Custom-join-leaveMessages: false
Disable-join-leaveMessages: false
bungeeconfig.yml
# 连接到您的数据库!(必需!)
database:
url: "jdbc:mysql://127.0.0.1:3306/YourDB"
username: "root"
password: "password"
MySQL needed!
JSMySQLFix is REQUIRED for the Velocity version
ServerSwitch is a versatile plugin designed for both BungeeCord and Spigot servers, providing comprehensive server switch logging and serving as an alternative to OnlyProxyJoin. With ServerSwitch, you can effortlessly track player server switches and customize their join experience, enhancing your server network management capabilities.
Features:
- Server Switch Logging: ServerSwitch logs player server switches to a MySQL database, providing valuable insights into player behavior and server traffic patterns across both BungeeCord and Spigot servers.
- OnlyProxyJoin Alternative: Replace OnlyProxyJoin with ServerSwitch to control player joins and implement custom join messages and actions based on specific criteria, catering to the needs of your server network.
- Automatic Cleanup: The plugin includes a feature to automatically delete old server switch records, ensuring optimal database performance and storage efficiency for both BungeeCord and Spigot servers.
- Customizable Configuration: Easily configure the MySQL connection settings, join messages, and other plugin options through the included configuration file, offering flexibility and customization for your server network setup.
- Lightweight and Efficient: ServerSwitch is lightweight and designed for efficiency, ensuring minimal impact on both BungeeCord and Spigot server performance while delivering robust functionality for server switch logging and player join management.
Instructions:
- Place the serverswitch.jar file in the plugins folder of both your BungeeCord and Spigot servers.
- Customize the plugin settings, including the MySQL connection details and join messages, in the config.yml file located in the plugin's folder on both server types.
- Restart your BungeeCord and Spigot servers to apply the changes.
- ServerSwitch will now log player server switches and handle player joins according to your configured settings on both BungeeCord and Spigot servers.
Enhance your server network management and provide a seamless join experience for your players with ServerSwitch today!
config.yml
# Connect to your Database! (IS REQUIRED!)
database:
url: "jdbc:mysql://127.0.0.1:3306/YourDB" # Set Infos here
username: "root"
password: "password"
# YOU HAVE TO SET A SERVERNAME! THE SERVER NAME HAVE TO BE THE SAME AS THE BUNGEECORD NAME TO THIS SERVER!!
server:
# YOU HAVE TO SET A SERVERNAME! THE SERVER NAME HAVE TO BE THE SAME AS THE BUNGEECORD NAME TO THIS SERVER!!
servername: "SETITHERE!" # Example: servername: "Lobby-01"
# Set your custom messages and permissions
messages:
kick: '§cYou need to join through the proxy!'
staff_notification: '§c{player} attempted to join without going through the proxy!'
joinMessage: '§e{player} joined'
leaveMessage: '§e{player} left the server'
permissions:
notify: 'serverswitch.notify' # Set Permission here
settings:
Custom-join-leaveMessages: false
Disable-join-leaveMessages: false
bungeeconfig.yml
# Connect to your Database! (IS REQUIRED!)
database:
url: "jdbc:mysql://127.0.0.1:3306/YourDB"
username: "root"
password: "password"
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ServerSwitch
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
ServerSwitch 2.1.1 是一个修复漏洞的发布版本。有两项之前静默失效的功能现已恢复正常:自动更新器现在确实会安装更新,且 Velocity 速率限制器不再拦截由队列插件放行进入的玩家。
漏洞修复
- 自动更新:更新现已应用。之前的版本会将新 jar 文件下载到
plugins/updates/文件夹中,而该文件夹是任何服务器都不会读取的位置,因此更新从未被安装。 - Spigot / Paper:jar 文件会被暂存到服务器的实际更新文件夹(
plugins/update/,参见bukkit.yml)中,并使用正在运行的 jar 文件名命名。服务器将在下次重启时替换它。 - BungeeCord / Velocity:jar 文件会被暂存到正在运行的 jar 文件旁边,并在代理停止时进行替换。如果无法替换(例如 Windows 上的文件被锁定),则会在下次启动时重试。
- 下载文件会与 Modrinth 发布的 SHA-512 校验和进行比对;损坏的下载将被丢弃。
- 仅安装正式版——跳过测试版(beta)和 alpha 版。
- 版本号采用数值比较,因此 2.1.10 正确地被识别为比 2.1.9 更新。
- Velocity 现在确实会下载更新——此前它仅记录存在更新的信息。
Velocity 速率限制器
- 修复了当队列插件放行玩家时出现“你切换服务器太快了!请等待。”提示的问题。速率限制器曾统计每次连接尝试;在玩家请求后一秒由队列进行的放行被视为第二次点击。现在它仅统计已完成的切换。
- 当前没有服务器的玩家(加入中、或被踢出后重定向中)永远不会受到速率限制——否则会导致他们从代理中被断开。
velocityconfig.yml中的features.rate-limiting.*配置项现在真正生效(包括cooldown-ms、per-player-limit、max-requests-per-minute、bypass-permission)。这些值此前是硬编码的。serverswitch.bypasslimit权限现在正常工作(此前始终返回 false)。- 新增消息键
messages.rate-limited,包含{seconds}变量;已自动添加到现有配置中。
升级说明
- 将新的 jar 文件放入即可,或者让 2.1.1 从此自行更新。现有配置文件会自动迁移;无需手动更改。
兼容性:Spigot/Paper 1.8 – 1.21.x,BungeeCord/Waterfall,Velocity 3.x。推荐使用 Java 21。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧