Language: English | German
This is an API, it does almost nothing itself. It may be required by another plugin or you may want to create a plugin which requires AccountAPI.
The API creates a database table containing UUIDs, names and hashed passwords, and makes it easy to edit the table's content. Might be useful if you're creating a web service with registration and login.
The table looks like this:
| uuid | name | pw |
| 069a79f444e94726a5befca90e38aaf5 | Notch | some SHA-256 hash |
| 853c80ef3c3749fdaa49938b674adae6 | jeb_ | some other SHA-256 hash |
| ... | ... | ... |
The plugin works on Bukkit/Spigot and BungeeCord.
To install the plugin, place the jar-file in your server's plugins folder and start the server. The plugin will show an error message:
[AccountAPI] Unable to connect to database. Edit connection data in config.yml
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'accountapi'
...
That means, your MySQL connection is not working. Edit config.yml in plugins/AccountAPI/. The file looks like this:
mysql: host: '127.0.0.1' port: 3306 user: 'root' pw: '' db: 'AccountAPI' check-connection: true
| mysql | |
| host | Enter the domain/ip of your database host |
| port | Enter your database port (default is 3306) |
| user | Enter your database username |
| pw | Enter your database password |
| db | Enter the name of an already existing database |
| check-connection | Set to true if you want the plugin to check the database connection on startup and disable itself if the connection fails. Otherwise, set to false. |
Suggestions are welcome
None so far, contact me if you want your plugin to be linked here.