Sueta
VO

VoteRanks

1.14 / 1.15

Reward System for Voting

·Plugin

Vote-Rank

About

Give your players presents for specific amount of votes, like items, books, rewards at the Chat or simply use a command on them!

How to install

Download the VoteRank.jar, put the jar in your Server's Plugin Folder and restart / reload the server. The Plugin creates a new folder called "VoteRank". In that folder you will the plugin's config.yml and the VoteRank.db (SqliteDB).

  1. Without any changes in the config.yml the Plugin uses a sqlite-database.
  2. You can mysql as database if you want.
  3. Fully configurable messages!
  4. Full Colour Support! (&1 - &9 - &a - &r) / [COLOURNAME]
  5. Show your Users, their votes on the Tablsit or on the right site of their Clients!

Commands

  • /setvotes <player> Sets the amount of votes in the Database.
  • /votes <player> Shows the Votes of that player.
  • /votes Displays your own votes.
  • /votelist Shows you, the top ten of voters (if there a 10 or more voters)
  • /clearvotes to clear your database.
  • /clearaccept to accept clearing your database.
  • /cleardeny to deny clearing your database.
  • /vote to display your votesites.
  • /voteversion Displays the Version of VoteRanks.
  • /addvote <player> (optionally <amount>) (Be aware that this triggers x times the Vote-Event so it can call other voteplugins too)
  • /savebook Saves a book you are holding to a file.

Permissions

  • "VoteRank.setvotes" gives the Player the permission to use the /setvotes Command
  • "VoteRank.clearvotes" gives you access to the /clearvotes Command
  • "Voterank.addvote gives you acces to the /addvotes Command"
  • "VoteRank.savebook" gives you acces to save a book as .txt
  • "VoteRanks.except.id", this except a player from getting the Goal, id has to be set in your goal

GitHub

GitHub Voteranks Project

Entchantments

List of Enchantments

VoteRank's Goal - System:

you can add new Goals in the config, if u want, just make sure it has the right structure.

Examples:
- 'votes=1;Message=Your first vote!;broadcast=<player> has 1 vote;Give=264:0,1,null,-1,null,-1,-1,-1'

This gives you, for your first vote, a diamond, without a Custom Name, or any Enchantment.

- votes>100;Message=Nice damn, <votes> votes!!;Give=266:0,1,null,-1,&6Vote-Bar,-1,-1,-1

If your votes > 100, this gives you a Gold-Bar with the Gold-coloured name "Vote-Bar" It will also announce the player. -1 will disable the function for this item, null means no Enchantment or name

- votes=100;Message=You got 100 Votes! Here is something special:)!;Give=300:0,1,PROTECTION_EXPLOSIONS,1337,&6Marius-Suit,50,0,0

This gives the player leather pants coloured in RGB colour(50,0,0), with the Gold-coloured name "Marius-Suit" and Explosion-Protection Level 1337.It will also announce the player.

Explanation of the structure parts:

  • votes=1 this sets the amount of Votes you need to get this Goal
  • votes<10 every time the amount of votes are less than 10
  • votes>10 every time the amount of vote are greater than 10
  • votes%10 every time the amount of votes can be divided by 10
  • Message=<Message> is a private Message to the Player(if he is online)
  • broadcast=<Message> is a Global Message to all Users
  • Give=id:subid,amount,Enchantmentlvl of entchantment,Name,red,green,blue
  • Give=listname, gives the player a random item from a list
  • command=<command> this can execute an command as the Console
  • book=[file]plugins\VoteRanks\Books\book0.txt; convert the book0.txt to a book and give it to the player

There is no need for any Order, but votes have to be the first Part of the Goal

Example for an Book(file):

  • book=author:Server-Team,title:The book,description:a book, fairly square!,&4Site1[newline]&4Site1,line2[newpage]Site2
  • id=id, sets the id of the goal, only used to except players from a goaThere is no need for any Order, but votes have to be the first Part of the Goal

Requirements:

  1. Votifier (NuVotifier works)
  2. optional Vault

Similar projects

Plugin →