Home›Java›Mods›[Voting] Percent Votes
[Voting] Percent Votes
Percent Votes

Overview
Usually on a prison server, players get rewards that include money, keys, and such. But after you get to a certain rank, 5 million is nothing. With this plugin you are able to give the player a percentage of the cost for them to rankup, instead of a flat amount. And most of all, this is compatible with ezRanks, RankMeUp, and everything else!

Example
Lets say johnny is currently the X rank, and it cost him $20 billion to rankup to Y. He then views the vote command (configurable) and sees that he will receive 25% of his rankup cost if he votes. Johnny then votes and receives $5 billion (25%).

Commands

Config
Code (Text):
[/I]
[I]#Default configuration file for PercentVotes, made by TimLampen, have fun with it :)

################################################################
#                                                              #
#                           Defaults                           #
#                                                              #
################################################################

prefix: '&6[&b%Votes&6] &r'
#Sets the prefix of the plugin

primary: '&b'
#Primary color of the plugin

secondary: '&6'
#secondary color of the plugin

useGUI: false
#Set to true or false if you want to open a GUI to the player when they do /vote instead just text

################################################################
#                                                              #
#                           Rewards                            #
#                                                              #
################################################################

rewards:

  Reward1:
    chance: 10
#How often this reward will be chosen, its X in a 1000 chance where X represents the number that you insert

    rewards:
    - 10%
    - give %player% diamondblock 256
    - broadcast %player% won something!
#You can use %player% to get the players name, you can also use X% where X represents the percentage of rankup money you want to give to the player

  Reward2:
    chance: 1
    rewards:
    - 100%
    - give %player% ironblock 256
    - broadcast %player% won an amazing prize!

Always:
  rewards:
  - 5%
  - give %player% air 100
  - msg %player% your luck sucks
#This reward is called whenever the other ones aren't, so if the plugin passes all the other rewards because of the chance, then it will do this one

command:
#Messages sent went the player does the command /vote
- "&bVoteLink 1 - www.google.com"
- "&aVoteLink 2 - spigotmc.org"
#If useGUI is set to true, change to follow this:
#- [InvSpot]@[MaterialID]@[Name]@[OnClick(Optional)]

#Ex. - [email protected] @& [email protected] /coolserver
#This would add an item at the first slot (Java starts counting at 0, the item would be stone with a name of "Link 1" and when it is clicked it will send the user to minecraftservers.org)

rewards:
#Messages sent to player when he does /rewards
- "&41/100 chance to get Reward1"
- "&a1/1000 chance to get Reward2"
- "&b69/100 chance to get Reward69"

################################################################
#                                                              #
#                           Ranks                              #
#                                                              #
################################################################

ranks:
  A:
    cost: 1000
    nextrank: B
#This is how much it costs to rankup to the next rank for example A is 1000 because it costs 1000 to rank up to B

  B:
    cost: 50000
    nextrank: C
  C:
    cost: 750000
    nextrank: end
#Once you have set the last rank, put 'end' so that the plugin knows that its the last rank
 


Permissions

Features
Installation
Source
https://github.com/TimLampen/PercentVotes

Bugs
https://github.com/TimLampen/PercentVotes/issues

Pictures
Made in the Config:
[​IMG]

Message when item is clicked

[​IMG]

What happens when you do /rewards

[​IMG]

Last Words
Hopefully this will be great for prison server owners. Report bugs and look out for updates in the comments section.

Finally
It is hard to get the willpower to maintain and release plugins like these. If you would like to help me out and buy me a coffee, here is a donation link :) Thanks to everyone who downloads!


https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&lc=US&item_name=TimLampen Plugin Services&no_note=0&currency_code=USD&bn=PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[Voting] Percent Votes is a free Minecraft Java mod. Downloaded 1,184 times (via Spigot). Download it and open it directly in the game.

Explore more