Vote rewards
When a player votes for your server, they can automatically receive an in-game reward – a key, money, an item or anything else. This is optional: your server works in the ranking without rewards, but with them players vote much more often.
Minecraft: NuVotifier (recommended)
NuVotifier is the most popular plugin that toplists use to notify a server about a vote. It works with Spigot, Paper, Purpur, BungeeCord and Velocity.
- Download NuVotifier (SpigotMC or Modrinth) and drop it into the
pluginsfolder. Restart the server. - Open
plugins/Votifier/config.yml(on Velocity –plugins/nuvotifier/config.yml). There you will find:host: 0.0.0.0
port: 8192
tokens:
default: abc123tavo-tokenas - Make sure port 8192 (TCP) is open. If your server is with a hosting provider, you usually need to add an extra port in their panel (additional port / allocation) and enter it in
port:. - TopServeriai.lt → My servers → Edit → Vote rewards:
- Method: NuVotifier v2 (Minecraft, token)
- Votifier address: the server's IP or domain (can be left empty – the server address will be used)
- Port: 8192 (or the one you set)
- Key: the token from
tokens → default
- Save and click “Send a test vote (TestUser)”. If everything works, you will see the received vote in the server console (set
debug: truein config.yml if nothing shows up).
TopServeriai.lt.BungeeCord / Velocity network: install NuVotifier on the proxy and enable forwarding to the game servers (or install it directly on the server where rewards are given). Enter the proxy address on TopServeriai.lt.
Minecraft: legacy Votifier (v1, public key)
If you use classic Votifier (or NuVotifier with tokens disabled):
- Open
plugins/Votifier/rsa/public.keyand copy the entire contents (a long string of characters). - On TopServeriai.lt choose the method Votifier v1 (Minecraft, public key), enter the address and port (from
config.yml, default 8192) and paste the key. - Save and send a test vote.
Common problems
- “Could not connect” / timeout – the port is not open or the address is wrong. Check the additional ports and firewall in your hosting panel.
- The vote arrives, but there is no reward – there is no rewards plugin, or the service name in it is wrong (it must be
TopServeriai.lt). - “Bad token” / “Unknown service” – the token was copied incorrectly. Copy it without spaces or quotes.
FiveM: ready-made “topserveriai_vote” resource
No need to open ports or write code. The resource itself asks TopServeriai.lt whether a player has voted and gives the reward. It works with ESX, QBCore, Qbox, ox_inventory or without a framework (via commands).
- TopServeriai.lt → My servers → Edit → Vote rewards → method “FiveM resource – /balsuoti” → save.
- Click “Download resource (.zip)”. Your API key will already be filled in inside.
- Unzip it and upload the
topserveriai_votefolder to your server'sresourcesfolder. - Open
config.luaand choose the reward:Config.Reward = {
money = 5000, -- pinigai
account = 'bank', -- 'bank' arba 'cash'
items = { { name = 'bread', count = 2 } },
commands = { 'givecar {id} adder' },
} - Add this to
server.cfg(after thees_extended/qb-core/ox_inventorylines):ensure topserveriai_vote - Restart the server. The console should show
[TopServeriai] Prisijungta prie TopServeriai.lt, and the edit page should show “Resource status: connected”.
How it works for players
- The player votes on the website, entering their FiveM name, and types
/balsuotiin game. If they voted under a different name –/balsuoti Vardas. - If
Config.AutoCheck = true, the reward is given to an online player automatically within a minute, without typing the command. - One vote = one reward. Claimed votes are marked, so the same reward cannot be received twice. Unclaimed votes are valid for 24 hours.
Common problems
- “Invalid API key” („Neteisingas API raktas“) – the key was changed or not copied in full. Download the resource again.
- “No unclaimed votes found” („Neatsiimtų balsų nerasta“) – the player voted under a different name or has already claimed the reward. Have them try
/balsuoti NameUsedOnWebsite. - Money does not arrive – set
Config.Frameworkmanually ('esx','qb','qbx') and check theaccountname.
Webhook (for developers)
On every vote, TopServeriai.lt sends a POST request to the address you specify, with JSON:
The X-Signature header contains an HMAC-SHA256 signature (hex) of the full request body, signed with your secret key (you will find it on the server edit page). Always verify the signature:
$sig = hash_hmac('sha256', $body, 'TAVO_SLAPTAS_RAKTAS');
if (!hash_equals($sig, $_SERVER['HTTP_X_SIGNATURE'] ?? '')) { http_response_code(403); exit; }
$vote = json_decode($body, true); // išduok prizą $vote['nickname']
The address must be publicly reachable over http:// or https://. Respond with HTTP 200 within 4 seconds.
CS2 and CS 1.6: RCON command (the simplest)
rcon_password in server.cfg, choose “CS2 / CS 1.6 – RCON command” and enter commands for your AMX Mod X plugins (e.g. amx_givepoints {name} 100). The -usercon parameter is not needed for CS 1.6, and RCON uses the game port over UDP.Nothing extra to install. When a player votes, TopServeriai.lt connects to your server via RCON and runs the command you specify – e.g. gives credits through a Store plugin or posts a thank-you in chat.
- Set an RCON password in your server's
server.cfgfile (make it long and unique):rcon_password "IlgasSlaptazodis2026" - Add
-userconto the server launch parameters (CS2 RCON does not work without it). In most hosting panels this is the “Startup / Launch parameters” field. - RCON uses the same port as the game (e.g. 27015), but over TCP. It is usually already open.
- TopServeriai.lt → My servers → Edit → Vote rewards → method “CS2 – RCON command”:
- RCON password – the same as in
server.cfg - Port and address – leave empty if they match the server address
- Command per vote – one per line,
{name}is replaced with the player's name
- RCON password – the same as in
- Save and click “Send a test vote (TestUser)”. You will see whether the command was executed.
Example commands (the exact name depends on your plugin – check its description):
say {name} prabalsavo už serverį ir gavo 100 kreditų!
Common problems
- “RCON did not respond” – the server was started without
-userconor the TCP port is closed. - “Incorrect RCON password” – the password does not match
server.cfg(restart the server after changing it). - The command ran, but there is no reward – the player was not on the server, entered a different name, or the plugin command is different.
We store the RCON password only so we can run the commands you specify, and we never display it anywhere.
Questions? Write to info@topserveriai.lt – we will help you set it up.