Percent Votes
- Contributors:
- TimLampen
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
- /vote - Base command, shows a list of all other commands like the giving percent one, and the vote links one.
- /rewards - Shows a list of available rewards that can be obtained from voting, config controlled.
- /percent - Allows a person with the correct permissions to give a percentage of a players rankup cost as money
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
- percent.give - Allows the player who has the permission to give a percentage of his rank as money
- percent.set- Allows the player who has the permission to set a percentage of his rank as money
- percent.remove - Allows the player who has the permission to remove a percentage of his rank as money
Installation
- Color compatible
- Limitless amount of ranks allowed
- Can give any item via command
- Can send messages
- Can set chance of each reward
- Able to give players % of their rank cost through a command
Source
- Make sure you have Votifier installed
- Drag jar into plugins folder
- Start server, then stop it right after (or reload)
- Start it again
- Complete
https://github.com/TimLampen/PercentVotes
Bugs
https://github.com/TimLampen/PercentVotes/issues
Pictures
Made in the Config:
Message when item is clicked
What happens when you do /rewards
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 linkThanks 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¤cy_code=USD&bn=PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest

[Voting] Percent Votes 1.3.3
Allows you to give a percentage of a player's rankup cost for a vote
Recent Updates
- Allows decimals Jun 16, 2015
- Fixed NPE Jun 15, 2015
- Fixed Java 8 Bug Jun 15, 2015