> For the complete documentation index, see [llms.txt](https://realisticnode.gitbook.io/rnsetups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://realisticnode.gitbook.io/rnsetups/ultimate-survival/configuration/voting.md).

# Voting

Receive votes with NuVotifier and reward players with SuperbVote.

The setup includes **NuVotifier** (receives votes from voting sites) and **SuperbVote** (gives the rewards).

**Reward per vote:** ⛁1,000 and 1 **Vote Key** (opens the Vote Crate). Change it in `plugins/SuperbVote/config.yml`.

## Step by step

{% stepper %}
{% step %}

### Open the Votifier port

Votifier listens on **port `8192` (TCP)**. In your hosting panel add an extra allocation `8192`, or open it in your firewall. If your host gives you a different port, set the same number in `plugins/Votifier/config.yml` → `port:`.
{% endstep %}

{% step %}

### Register your server on voting sites

Use any Votifier-compatible server list. When the site asks for the Votifier details, enter:

* **Address:** your server IP or domain.
* **Port:** `8192` (or your own port).
* **Public key:** the content of `plugins/Votifier/rsa/public.key` (see below).
* Some sites use the newer **token** (v2) instead. It is in `plugins/Votifier/config.yml` under `tokens:` → `default:`.
  {% endstep %}

{% step %}

### Add your voting links

Edit `vote_link_1` … `vote_link_5` in `plugins/RocketPlaceholders/placeholders/server.yml`, then `/rp reload`. Players see them with `/vote`.
{% endstep %}

{% step %}

### Test it

In the console run `testvote YourName`. You get the reward and everyone sees the broadcast. Real votes are logged as `Got a vote record from …`.
{% endstep %}
{% endstepper %}

## Your public key and token

Your server creates its **own** Votifier key pair and token on the first start, so every installation is unique.

* **Public key:** open `plugins/Votifier/rsa/public.key` and paste its content on the voting site as **one line**, with no spaces or line breaks.
* **Token (v2):** `plugins/Votifier/config.yml` → `tokens:` → `default:`. It is also printed in the console on the first start.

{% hint style="danger" %}
Never share `plugins/Votifier/rsa/private.key` or your token. If one of them leaks, stop the server, delete the `plugins/Votifier/rsa` folder and the `tokens:` entry in `plugins/Votifier/config.yml`, and start the server again to get new ones. Then update your voting sites.
{% endhint %}

## Commands

| Command                         | What it does                       |
| ------------------------------- | ---------------------------------- |
| `/testvote <player> [service]`  | Sends a test vote through Votifier |
| `/nvreload`                     | Reloads Votifier                   |
| `/superbvote fakevote <player>` | Simulates a vote in SuperbVote     |
| `/superbvote reload`            | Reloads SuperbVote                 |
| `/vote`                         | Shows your voting links            |
