? LastServer & Lobby
Velocity 网络的核心导航工具。
无缝管理玩家在后端服务器、大厅(Lobby)及其最后已知位置之间的移动。
? 目录
✨ 功能
| 功能 |
描述 |
| ? 大厅命令 (Lobby Command) |
立即将玩家传送至主枢纽/大厅,支持可配置的别名(例如 /hub、/spawn)。 |
| ? 上一服务器 (Last Server) |
允许玩家通过 /last 返回之前的后端服务器。非常适合用于身份验证大厅。 |
| ? 持久化 (Persistence) |
即使代理重启,也能通过 data.yml 记住玩家的位置。 |
| ? 智能日志 (Smart Logging) |
按会话在组织良好的日志文件中跟踪玩家移动(切换/加入/退出)。 |
| ⚡ 轻量级 (Lightweight) |
针对 Velocity 3.x 优化。零延迟,即时执行。 |
? 安装
- 下载: 获取最新的
.jar 文件。
- 上传: 将其放入代理的插件文件夹:
Velocity/plugins/。
- 重启: 重启你的 Velocity 代理。
- 享受: 配置文件将自动生成。
? 命令与权限
管理谁可以使用导航功能。
| 命令 |
别名(可配置) |
权限 |
描述 |
| /lobby |
/hub, /exit, /leave |
lastserverandlobby.lobby |
连接到配置的大厅服务器。 |
| /last |
/return, /back |
lastserverandlobby.last |
连接到上次访问的服务器。 |
| /lastserver reload |
- |
lastserverandlobby.admin |
重载 config.yml。 |
| /lastserver dump |
- |
lastserverandlobby.admin |
打印内存统计信息(调试用)。 |
? 提示: 你可以在 config.yml 中为命令定义多个别名,以匹配你服务器的语言。
? 存储与持久化
插件会智能地保存玩家的行踪。你可以配置何时将数据保存到磁盘,以平衡性能与安全。
保存模式:
- TIME: 每隔 X 秒保存一次数据。
- MOVES: 经过 X 次服务器切换后保存数据。
- BOTH: 同时使用两种标准(推荐用于繁忙的服务器)。
数据存储位置: plugins/lastserverandlobby/data.yml
? 移动日志
追踪玩家在网络中的旅程。每次代理启动时,插件都会创建一个新的日志文件。
位置: plugins/lastserverandlobby/logs/
输出示例:
[2026-01-15 23:15:05] JOIN | name=Steve | uuid=...
[2026-01-15 23:15:06] SWITCH | name=Steve | from=JOIN | to=auth
[2026-01-15 23:15:11] SWITCH | name=Steve | from=auth | to=lobby
[2026-01-15 23:16:53] QUIT | name=Steve | from=lobby | to=DISCONNECT
可配置:你可以独立开启或关闭写入磁盘(文件)和控制台的日志记录。
⚙️ 配置
? 点击查看 config.yml 结构
# LastServerAndLobby Configuration
# /lobby 命令的目标服务器
lobby-server: "lobby"
# 命令别名
commands:
lobby-aliases:
- "hub"
- "spawn"
last-aliases:
- "back"
- "return"
# 持久化设置
storage:
save-mode: "BOTH" # TIME, MOVES, 或 BOTH
save-interval: 300 # 秒
moves-interval: 10 # 服务器切换次数
# 日志设置
logging:
log-to-file: true
log-to-console: false
✅ 兼容性
- Velocity: 3.x(已在 3.4.0+ 快照上测试)。
- 权限: 完全兼容 LuckPerms Velocity。
⚖️ 许可证
本项目基于 MIT 许可证 授权。
? LastServer & Lobby
The essential navigation utility for Velocity networks.
Seamlessly manage player movement between Backend servers, Lobbies, and their last known position.
? Table of Contents
✨ Features
| Feature |
Description |
| ? Lobby Command |
Instantly send players to your main Hub/Lobby with configurable aliases (e.g., /hub, /spawn). |
| ? Last Server |
Allow players to return to their previous backend server with /last. Perfect for Auth lobbies. |
| ? Persistence |
Remembers player positions even after proxy restarts via data.yml. |
| ? Smart Logging |
Tracks player movement (Switch/Join/Quit) in organized log files per session. |
| ⚡ Lightweight |
Optimized for Velocity 3.x. Zero lag, instant execution. |
? Installation
- Download: Get the latest
.jar file.
- Upload: Place it into your proxy's plugins folder:
Velocity/plugins/.
- Restart: Reboot your Velocity proxy.
- Enjoy: The config files will generate automatically.
? Commands & Permissions
Manage who can use the navigation features.
| Command |
Aliases (Configurable) |
Permission |
Description |
| /lobby |
/hub, /exit, /leave |
lastserverandlobby.lobby |
Connect to the configured Lobby server. |
| /last |
/return, /back |
lastserverandlobby.last |
Connect to the last server visited. |
| /lastserver reload |
- |
lastserverandlobby.admin |
Reloads config.yml. |
| /lastserver dump |
- |
lastserverandlobby.admin |
Prints memory stats (Debug). |
? Tip: You can define multiple aliases for commands in the config.yml to fit your server's language.
? Storage & Persistence
The plugin intelligently saves where players have been. You can configure when to save data to disk to balance performance and safety.
Save Modes:
- TIME: Saves data every X seconds.
- MOVES: Saves data after X server switches.
- BOTH: Uses both criteria (recommended for busy servers).
Data is stored in: plugins/lastserverandlobby/data.yml
? Movement Logging
Keep track of your players' journey through your network. The plugin creates a new log file every time the proxy starts.
Location: plugins/lastserverandlobby/logs/
Example Output:
[2026-01-15 23:15:05] JOIN | name=Steve | uuid=...
[2026-01-15 23:15:06] SWITCH | name=Steve | from=JOIN | to=auth
[2026-01-15 23:15:11] SWITCH | name=Steve | from=auth | to=lobby
[2026-01-15 23:16:53] QUIT | name=Steve | from=lobby | to=DISCONNECT
Configurable: You can toggle logging to Disk (file) and Console independently.
⚙️ Configuration
? Click to view config.yml structure
# LastServerAndLobby Configuration
# Target server for /lobby command
lobby-server: "lobby"
# Command Aliases
commands:
lobby-aliases:
- "hub"
- "spawn"
last-aliases:
- "back"
- "return"
# Persistence Settings
storage:
save-mode: "BOTH" # TIME, MOVES, or BOTH
save-interval: 300 # Seconds
moves-interval: 10 # Server switches
# Logging Settings
logging:
log-to-file: true
log-to-console: false
✅ Compatibility
- Velocity: 3.x (Tested on 3.4.0+ snapshots).
- Permissions: Fully compatible with LuckPerms Velocity.
⚖️ License
This project is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧