Vote rewards for Minecraft

Lists that use Votifier and lists that use an API sit on one page. The plugin turns votes into items, crate keys or any console command.

Create your vote page

Sign up, name your server and choose Minecraft. Setup fills in the usual settings: players enter “Your in-game name” and claim with /claimvote.

You should now see: Your vote page at its own address.

Add your toplists

Paste the link of your server on each list. For this game, VoteRank, Minecraft-MP, MinecraftServers.org and others are ready.

You should now see: Each list on your vote page.

Choose the reward

The item name, such as minecraft:diamond, or a word from the plugin’s config.

You should now see: The reward under “What you earn” on your page.

Create an API key

Open Game server in the dashboard and create a key. It is shown once. You need it in the next step.

Connect the game

Choose one of these ways. Each has its own files and settings below.

Try it

Open a vote site in your dashboard, use Send a test vote with your own name, then type /claimvote in the game.

You should now see: The reward in your game, and “Your game has used a key”.

Spigot and Paper plugin

Tested against a live VoteScript with a simulated game

Step 1

Put VoteScript-minecraft.jar in plugins/ and start the server once.

Step 2

Set url and key in plugins/VoteScript/config.yml and restart.

plugins/VoteScript/config.yml
url: https://votescript.voterank.net
key: 'YOUR_KEY'

claim-on-join: true

default-command: give {player} {key} {amount}
rewards:
  vote_crate:
    - crates key give {player} vote {amount}

actions:
  vip:                 # vip/vip, amount is days
    needs: LuckPerms
    allow: [vip]
  teleport:            # teleport/vote_island
    places:
      vote_island: {world: world, x: 0.5, y: 80, z: 0.5}
run:                   # run/daily_box
  daily_box:
    - crates key give {player} daily {amount}

Step 3

Choose what each reward key does under rewards: any console commands. VIP days and ranks (with LuckPerms), experience, effects, teleports to your places and your own actions are under actions and run.

Step 4

With Votifier or NuVotifier installed, its votes are forwarded to VoteScript. Without it, turn on votifier in the config.

plugins/VoteScript/config.yml (part)
forward-votifier: true
votifier:
  enabled: false
  host: 0.0.0.0
  port: 8192
  token: ''

Votifier without a plugin

Tested against a live VoteScript

Step 1

Run java -jar votescript-votifier-bridge.jar anywhere that is reachable. The first start writes votescript.properties.

Step 2

Fill in the API key and start again. It prints the public key (Votifier v1) and token (v2) for your lists.

votescript.properties
url=https://votescript.voterank.net
key=YOUR_KEY
host=0.0.0.0
port=8192

Step 3

Add each list as a vote site with Votifier. Unknown service names show up under Game server.

Proxy, Fabric, Forge or Bedrock with RCON

Example command, test it first

Set enable-rcon, rcon.port and rcon.password in server.properties. The player must be online, so put the “player not found” text of your server into retry_if.

Step 1

No game code: the delivery program runs a command for every confirmed vote. Download it and run it once.

Step 2

Set up votescript.ini like this, with your own password and command.

votescript.ini
[votescript]
url = "https://votescript.voterank.net"
key = "YOUR_KEY"
mode = "rcon"

[rcon]
host = "127.0.0.1"
port = 25575
password = ""
retry_if = "No player was found"

[commands]
default = "give {player} {key} {amount}"

Toplists for Minecraft

VoteRank is recommended for every game. Lists marked “test first” have a format we only found in other people’s code.

If it does not work

The command says there is nothing to claim
Check that the name on the vote page is the same as in the game, and that the vote shows as counted in the callback log.
Votes are not checked right now
Your game could not reach VoteScript, or the key is wrong. Look at “Last used” next to the key under Game server.
The command runs but the player gets nothing
Put the text your server answers when a player is not found into retry_if, so the reward waits and is tried again.
A reward says it waits
Your game said it cannot give it yet, or the player was in a fight. Open Rewards in the dashboard to see what your game can do, and allow it in the settings of the script or plugin.
Nothing arrives from a toplist
Compare the callback URL on the list with the one in VoteScript, letter by letter, with https. The common problems guide has every case.

Do it yourself

The API, webhooks and clients work with any game.

Give your players one place to vote

Your page is live as soon as you create your server. You can connect the rest step by step.