Skip to content

Points and the vote shop

Votes can pay a currency as well as rewards, and that currency buys things from a shop players open in game.

Choosing what a point is

points.type in config.yml decides what players are actually earning:

Type Points are Good for
internal A counter this plugin keeps A currency only voting makes and only the vote shop spends
vault Your server's real money Servers where votes should just pay cash
embercoins A named Ember Coins currency Paying a premium currency the rest of your server already uses
item A real item players carry Making the reward visible, tradeable and losable

points.per-vote is how many each vote pays. Set it to 0 to turn points off and keep the rewards.

points.label is what they are called in messages, so a server paying Ember Coins tokens can say "Survivor Tokens" instead of "vote points".

Vault

points:
  type: vault
  per-vote: 250
  label: "coins"

Any economy plugin that registers with Vault works. The shop charges the same money.

Ember Coins

points:
  type: embercoins
  per-vote: 1
  label: "Survivor Tokens"
  currency: survivor_tokens

Leave currency blank for the primary one. Ember Coins is reached at runtime, so this jar still runs on servers that do not have it - if it is missing, the plugin says so once and falls back to the internal counter rather than losing a vote.

A physical token

points:
  type: item
  per-vote: 1
  label: "Vote Tokens"
  item:
    material: SUNFLOWER
    name: "<gradient:#8b6cf0:#a78bfa><bold>Vote Token</bold></gradient>"
    glow: true

The token is stamped, so one made in an anvil is not accepted. Because it is a real item it can be traded, stored and dropped on death, which is the appeal. Tokens owed to a player who is offline are held and handed over on login.

The shop

Build it in /voting editor → Vote shop. Each entry is a reward with a price: the item you set is what players see on the shelf, and the commands and item are what they get. Permissions and conditions work exactly as they do elsewhere, so an entry can be limited to a rank or a time of day.

Players open it with:

/vote shop

The last slot shows their balance and what each vote pays.

Adjusting balances

/voting points <player> give 50
/voting points <player> take 10
/voting points <player> set 0

With the item backend the player has to be online to receive tokens; the command says so rather than losing them.

On a scoreboard

%embervoting_points% is the balance, and there are placeholders for totals, streaks, monthly counts and the leaderboard. See commands and permissions.