tiAuth
BungeeCord 授权插件
功能:
- 对话框支持
(1.21.6+)
- 正版模式 (Premium mode)
- 允许已验证的玩家通过激活本地
online-mode true 跳过密码输入
- 会话支持 (Session support)
- 多种数据库类型支持
- 支持
SQLite, H2, MySQL, PostgreSQL
- 虚拟服务器 (Virtual server)
命令:
玩家可用:
/register <password> <password> - 注册账号
/login <password> - 登录
/logout - 销毁会话
/changepassword <old password> <new password> - 修改密码
/premium - 启用正版模式
/unregister <password> - 删除账号
管理员可用:
/tiauth reload - 重载配置
- 权限:
tiauth.admin.commands.reload
/tiauth unregister <player> - 删除玩家账号
- 权限:
tiauth.admin.commands.unregister
/tiauth changepassword <player> <password> - 修改玩家密码
- 权限:
tiauth.admin.commands.changepassword
/tiauth forcelogin <player> - 强制玩家登录
- 权限:
tiauth.admin.commands.forcelogin
/tiauth migrate <sourceplugin> <sourcedatabase> [file] [user] [password] [host] [port] [name] - 从其他插件/数据库类型迁移数据
- 权限:
tiauth.admin.commands.migrate
/tiauth backup create [name] [compress 0-9] - 创建数据库备份
- 权限:
tiauth.admin.commands.backup
/tiauth backup restore <name> - 恢复数据库备份
- 权限:
tiauth.admin.commands.backup
迁移
支持的插件
- tiAuth(用于更改数据库类型)
- MCAuth
- LimboAuth
- AuthMe
迁移命令
以下是这些插件默认使用的数据库类型的命令。
如果您使用的是基于文件的数据库(SQLite 或 H2):
- 将数据库文件放入插件文件夹。
- 对于 H2,文件名中不要包含
.mv.db 扩展名。
- 如果没有用户名或密码,请将
user 和 password 都设置为 empty。
MCAuth SQLite
/tiauth migrate mcauth sqlite auth.db
LimboAuth H2
/tiauth migrate limboauth h2 limboauth-v2 empty empty
AuthMe SQLite
/tiauth migrate authme sqlite authme.db
重要 — LimboAuth H2 迁移
在从 LimboAuth H2(默认使用 H2 作为其数据库)迁移之前:
- 打开你的
config.yml。
- 将
libraries.h-2 下的 version 值更改为 2.1.214。
- 删除 tiAuth 数据库文件(如果你使用的是 H2——它是默认设置)。
- 重启服务器。
这是必需的,因为 LimboAuth 使用的是一个过时的 H2 版本,该版本与 tiAuth 默认使用的较新版本不兼容。
如果跳过这些步骤,插件将在迁移过程中抛出错误。
虚拟服务器转发设置(用于正确的玩家重定向):
- 在插件配置中,设置
servers.use-virtual-server: true 并重启服务器。
- 导航到虚拟服务器配置文件:
/plugins/tiAuth/picolimbo/config.toml。
- 在
[forwarding] 部分,选择你偏好的 method:
MODERN —— 适用于 Velocity 或支持现代转发的任何代理。在 secret 字段中输入你的密钥。
BUNGEE_GUARD —— 适用于 BungeeGuard。添加一个 tokens 字段作为数组,例如:tokens = ["123", "456", "789"]。
LEGACY —— 适用于传统转发。
- 重启服务器。
其他配置:
要禁用图纸(schematics)的使用,请在 [world.experimental] 部分设置 schematic_file = ""。如果你想使用自己的图纸,请提供文件路径(注意:文件可能需要进行转换;有关更多详细信息,请参阅 PicoLimbo 文档)。
PicoLimbo 配置的完整文档
支持
Discord 服务器
Telegram
tiAuth
Authorization plugin for BungeeCord
Features:
- Dialog window support
(1.21.6+)
- Interactive window with a password input field
- Premium mode
- Allows licensed players to skip password entry by activating local
online-mode true
- Session support
- Allows players to skip password entry for a certain period after successful authentication
- Multiple database types support
- Supports
SQLite, H2, MySQL, PostgreSQL
- Virtual server
- Virtual server for auth server powered by PicoLimbo
Commands:
For players:
/register <password> <password> - Register an account
/login <password> - Log in
/logout - Destory session
/changepassword <old password> <new password> - Change password
/premium - Enable premium mode
/unregister <password> - Delete account
For administrators:
/tiauth reload - Reload config
- Permission:
tiauth.admin.commands.reload
/tiauth unregister <player> - Delete player account
- Permission:
tiauth.admin.commands.unregister
/tiauth changepassword <player> <password> - Change player password
- Permission:
tiauth.admin.commands.changepassword
/tiauth forcelogin <player> - Force login player
- Permission:
tiauth.admin.commands.forcelogin
/tiauth migrate <sourceplugin> <sourcedatabase> [file] [user] [password] [host] [port] [name] - Migrate database from other plugins/database type
- Permission:
tiauth.admin.commands.migrate
/tiauth backup create [name] [compress 0-9] - Create database backup
- Permission:
tiauth.admin.commands.backup
/tiauth backup restore <name> - Restore database backup
- Permission:
tiauth.admin.commands.backup
Migration
Supported Plugins
- tiAuth (for changing the database type)
- MCAuth
- LimboAuth
- AuthMe
Migration Commands
Below are the commands for the default database types used by these plugins.
If you are using a file-based database (SQLite or H2):
- Place the database file into the plugin folder.
- For H2, do not include the
.mv.db extension in the filename.
- If there is no username or password, set both
user and password to empty.
MCAuth SQLite
/tiauth migrate mcauth sqlite auth.db
LimboAuth H2
/tiauth migrate limboauth h2 limboauth-v2 empty empty
AuthMe SQLite
/tiauth migrate authme sqlite authme.db
Important — LimboAuth H2 Migration
Before migrating from LimboAuth H2 (which uses H2 as its default database):
- Open your
config.yml.
- Change the
version value under libraries.h-2 to 2.1.214.
- Delete the tiAuth database file (if you are using H2 — it’s the default).
- Restart your server.
This is required because LimboAuth uses an outdated version of H2 that is incompatible with the newer version used by tiAuth by default.
If you skip these steps, the plugin will throw an error during migration.
Virtual server forwarding setup (required for proper player redirection):
- In the plugin configuration, set
servers.use-virtual-server: true and restart the server.
- Navigate to the virtual server configuration file:
/plugins/tiAuth/picolimbo/config.toml.
- In the
[forwarding] section, select your preferred method:
MODERN — for Velocity or any proxy supporting Modern forwarding. Enter your key in the secret field.
BUNGEE_GUARD — for BungeeGuard. Add a tokens field as an array, for example: tokens = ["123", "456", "789"].
LEGACY — for legacy forwarding.
- Restart the server.
Additional configuration:
To disable the use of schematics, set schematic_file = "" in the [world.experimental] section. If you wish to use your own schematic, provide the file path (note: the file may need to be converted; check the PicoLimbo documentation for more details).
Full documentation for PicoLimbo configuration
Support
Discord Server
Telegram
评论 0
登录后参与评分
还没有评论,来抢沙发吧