Wiki 9Minecraft Wiki 9Minecraft

How to Manage Admin Permissions, the PIN Panel, and Database Migration in TgAuth Plugin

As your Bukkit, Paper, or Purpur server grows, TgAuth Plugin provides dedicated admin tools for managing linked player accounts and upgrading database storage without wiping existing links. Granting permissions cleanly and testing migrations ahead of time keeps player logins uninterrupted.

Granting tgauth.admin, LuckPerms, and PIN Panel Access

1. Assign the tgauth.admin permission strictly to trusted staff members. It unlocks admin commands for reload, unlink, forcelink, userinfo, FastLogin diagnostics, PIN reset, update checks, and database migration.

2. Use the Telegram bot admin PIN panel configured in config.yml when staff need to check linked player account status directly from Telegram, and use the PIN reset admin command if a staff member needs a fresh PIN.

3. If you run LuckPerms, TgAuth Plugin works optionally alongside it to check offline admin permissions for the Telegram panel, letting authorized administrators manage accounts even while offline in Minecraft.

4. When a player switches Telegram accounts or cannot finish linking, use userinfo to verify their record, unlink to clear the old link, or forcelink to bind their account manually.

Migrating Data from SQLite to MySQL or MariaDB

TgAuth Plugin supports storing linked account records in SQLite, MySQL, or MariaDB. Small servers typically begin on SQLite, and when you are ready to scale to an active MySQL or MariaDB database, configure your database target, back up your old SQLite file first, and run the built-in database migration admin command (requiring tgauth.admin) to import every existing linked account cleanly into MySQL or MariaDB. After importing, verify a few existing players with userinfo before archiving your SQLite backup to confirm everything transferred cleanly.

Join 9Minecraft News & Guides