To get the token you must have an account and a server on ServersMC.TOP. Once you have your server registered, open the
dashboard and select your server, at the bottom of the web you can get the token for your server.
Once you have your token, add it to the plugin's config.yml file.
Example:
token: "kkIwD0WJOF4xi8Blgnic965aHXutiShgLZ4S5TqNLYXusbcxHE"
Your are developer?
In case you want to develop your own plugin to connect to the API, you can use the point
https://api.serversmc.top/public/vote/<username> to which you must pass the "token" of your server in the body.
Having the possible responses:
(200): { success: true } => Vote exists and is now marked as already rewarded.
(400): { success: false, code: "already_voted" } => The player has already been rewarded.
(400): { success: false, code: "not_voted" }; => The player does not have any votes registered on the web.
(400): { success: false, code: "invalid_token" }; => The token is not valid.