Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Converting

Mr. Piggy edited this page Apr 22, 2017 · 11 revisions

Notice

If you started using MySQL or SQLite3 for PiggyAuth before v3.0.0 and want to use the converter, please change the password length to 200 or more for your database.

SimpleAuth

YML

  • Place your SimpleAuth files into the convert folder in plugins/PiggyAuth.
  • Run /convert simpleauth yml <directory>. Example: /convert simpleauth yml players

SQLite3

  • Place your SimpleAuth database into the convert folder in plugins/PiggyAuth.
  • Run /convert simpleauth sqlite3 <file> <table>. Example: convert simpleauth sqlite3 players.db players INFO: The default file name is players.db and the default table name is players. For this to work, make sure you have the sqlite3 extension installed.

MySQL

  • Run /convert simpleauth mysql <host> <user> <password> <name> <port> <table>. Example: /convert simpleauth mysql localhost user password simpleauth 3306 simpleauth_players INFO: The default table name is simpleauth_players. For this to work, make sure you have the mysql extension installed.

ServerAuth

YML

  • Place your ServerAuth files into the convert folder in plugins/PiggyAuth.
  • Then you do /convert serverauth yml <directory> <algorithm>. Example: /convert serverauth yml players sha256 INFO: The default encryption algorithm is sha256.

MySQL

  • Run /convert serverauth mysql <host> <user> <password> <name> <port> <table> <algorithm>. Example: /convert serverauth mysql localhost user password serverauth 3306 players sha256. INFO: The default table name is srvauth_serverauthdata The default encryption algorithm is sha256. For this to work, make sure you have the mysql extension installed.
Clone this wiki locally