
Vote rewards for RuneScape (RSPS)
Your players vote on every RSPS toplist from one page. One jar answers ::claimvote, pays online players by itself and can receive Votifier votes. Or your old votes table keeps working as it is.
Vote for Emberfall
ExampleVoting as Iron Moss
2 of 4 voted
VoteRank Vote here first
Voted. Again in 11 h 42 minRSPS-List
Voted. Again in 4 h 05 minRulocus
Waiting for the list to confirmTopG
Vote every 6 hoursCreate your vote page
Sign up, name your server and choose RuneScape (RSPS). Setup fills in the usual settings: players enter “Your in-game name” and claim with ::claimvote.
Tell us about your server
Add your toplists
Paste the link of your server on each list. For this game, VoteRank, RSPS-List, Rulocus and others are ready.
VoteRank Recommended
RSPS-List
Choose the reward
The item ID, such as 995 for coins. Donator days, titles, teleports and more are in the list.
Reward for every vote
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.
API key
gv_4d1f…9c02CopyCopy it now. We store only a hash, so it cannot be shown again.
Waiting for the first call from your game
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.
Iron Moss: ::claimvote
Thank you for voting! Rewards received for 2 votes.
API key
gv_4d1f…9c02CopyCopy it now. We store only a hash, so it cannot be shown again.
Your game has used a key
Add our jar to your server
Tested against a live VoteScriptStep 1
Add votescript.jar to your server’s libraries. It needs Java 8 and nothing else.
your-server/
libs/
votescript.jarnew
data/
server.jar
Step 2
Start it when your server starts, with the four short methods below and what your game does for each kind of reward. The names in the code are examples: use those of your own server.
// what your game does for each kind of reward
VoteActions<Player> actions = new VoteActions<>();
actions.on("item", (p, i) -> p.getInventory().add(i.number(0, 1, 65535), i.amount));
actions.on("vip/donator", (p, i) -> p.addDonatorDays(i.amount));
actions.on("title", (p, i) -> p.setTitle(i.words(), i.forever() ? -1 : i.amount));
actions.on("xp", (p, i) -> p.getSkills().addXp(Skill.byName(i.arg(0)), i.amount));
actions.on("storage/votePoints", (p, i) -> p.addAttribute("votePoints", i.amount));
actions.on("teleport/vote_island", (p, i) -> !p.inCombat(), (p, i) -> p.moveTo(3222, 3222, 0));
actions.on("run/daily_box", (p, i) -> DailyBox.open(p, i.amount)); // your own
// when the server starts
static final Queue<Runnable> TASKS = new ConcurrentLinkedQueue<>();
static VoteServer votes;
votes = VoteServer.start(new File("data/votes"), new VoteServer.Game() {
public void run(Runnable task) { TASKS.add(task); }
public Collection<String> online() {
List<String> names = new ArrayList<>();
for (Player p : World.getPlayers()) if (p != null) names.add(p.getUsername());
return names;
}
public boolean give(String name, VoteScript.Claim claim) {
Player p = World.getPlayer(name);
if (p == null || p.getInventory().freeSlots() < claim.items.size()) return false; // kept for later
return actions.give(p, claim);
}
public void message(String name, String text) {
Player p = World.getPlayer(name);
if (p != null) p.sendMessage(text);
}
}, actions);
// in your game tick
for (Runnable t; (t = TASKS.poll()) != null; ) t.run();
// in your command handler, with the whole text the player typed
if (votes != null && votes.command(player.getUsername(), text)) return;Step 3
Pass commands to it. Players can type ::claimvote, or ::auth CODE.
Iron Moss: ::claimvote
Thank you for voting! Rewards received for 2 votes.
Step 4
Start the server once. Put your API key in data/votes/votescript.properties and restart. Online players are now paid by themselves.
url=https://votescript.voterank.net key=YOUR_KEY automatic=true every=10
Step 5
For lists that send Votifier votes, set votifier=true and open the port. Give the list the token, or the key in data/votes/rsa/public.key.
url=https://votescript.voterank.net key=YOUR_KEY automatic=true every=10 votifier=true host=0.0.0.0 port=8192 v1=true
data/votes/
votescript.propertiesedit
rsa/
public.keycopy
Write the command yourself
Tested against a live VoteScriptStep 1
To write everything yourself, use VoteRewards and call claim or claimCode. Network, retries and crashes are handled.
VoteRewards rewards = new VoteRewards(
new VoteScript("https://votescript.voterank.net", "YOUR_KEY"),
task -> World.submit(task), // your game thread
new File("data/votes.properties"));
rewards.claim(player.getUsername(), new VoteRewards.Handler() {
public boolean give(VoteScript.Claim claim) {
if (!player.isOnline()) return false; // kept for next time
for (VoteScript.Item i : claim.items)
player.addItem(Integer.parseInt(i.key), i.amount);
return true;
}
public void message(String text) { player.sendMessage(text); }
});Keep your old ::claimvote
Run on a test databaseFor servers whose command already reads a votes table with username, voted_on and claimed. Your jar and your command stay as they are; the delivery program adds one row per vote. In the dashboard, give one reward with the key vote and amount 1 per vote. Rename the columns if yours differ. The table must be InnoDB (ALTER TABLE votes ENGINE=InnoDB), or a crash could add a row twice. Turn off the old vote page first, so nobody can vote in both.
This pays into the database your game already uses. The program runs on your own machine, and VoteScript never gets your database login.
Step 1
No game code: the delivery program pays every confirmed vote by itself. Download it and run it once.
$ php votescript-delivery.php
Created votescript.ini. Fill it in and start again.
Step 2
Set up votescript.ini like this. Replace the key, the database name and the login.
Give your reward the key vote in the dashboard, so it finds this statement.
[votescript] url = "https://votescript.voterank.net" key = "YOUR_KEY" mode = "sql" [database] dsn = "mysql:host=127.0.0.1;dbname=YOUR_DATABASE;charset=utf8mb4" user = "" password = "" [sql] vote = "INSERT INTO votes (username, vote_key, site_id, voted_on, claimed) VALUES (:player, UUID(), 0, NOW(), 0)" check = "" each = "vote"
Step 3
Start it again and send a test vote from your dashboard.
$ php votescript-delivery.php
Iron Moss: paid 1 x Vote
Toplists for RuneScape (RSPS)
VoteRank is recommended for every game. Lists marked “test first” have a format we only found in other people’s code.
- VRVoteRankA vote every 12 hours
- RRulocusA vote every 12 hours
- RLRuneListA vote every 12 hours
- RSRSPS-ListA vote every 12 hours
- RSRSPS.orgA vote every 12 hours
- ATArena-Top100A vote every 12 hours
- PSPrivate-Server.wsA vote every 24 hours
- MMMMTop200A vote every 12 hours
- T1Top100ArenaA vote every 24 hours
- TGTopGA vote every 6 hours
- STServerTiltA vote every 24 hours
- RSRSPS100A vote every 12 hours
- XTXtremeTop100A vote every 12 hours
- GTGTOP100A vote every 12 hours
- MMMMO ToplistA vote every 12 hours
If it does not work
The command says there is nothing to claim
Votes are not checked right now
Rewards stay waiting
A reward says it waits
Nothing arrives from a toplist
Do it yourself
The API, webhooks and clients work with any game.
GuideVotifier for an RSPSFour short methods connect the jar to your game. It answers ::claimvote, pays players who are online by itself, and can receive Votifier votes. With a VoteScript key, or without an account.
GuideSend votes to your VotifierVoteScript confirms each vote and sends it to your game as a Votifier vote. The plugin that already pays your voters sees one more vote.
GuideToplist callbacksA callback is how a toplist tells VoteScript that someone really voted. Lists also call it postback, incentive, pingback or webhook. You paste one address per list.
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.

