Vote-Rank
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
Simply download the VoteRank.jar, put the Jar in your Server's Plugin Folder and restart / reload it. The plugin creates a new folder in your pugins folder named "VoteRank". In the VoteRank folder you can find the config.yml and the VoteRank.db.
- Without any chanches in the config.yml the plugin uses a sqlite-database
- You can choose a mySql database if you want to
- All messages can be changed!
- Full Color Support! (&1 - &9 - &a - &r) / [COLORNAME]
- Show your Users Votes on Tab or on the right sit of their Clients!
- ==== Only use one Sidebar or tab because they can block each other====
- Look at the Images
Version 1.0 to above
- Colored leather armor with RGB color-code
- Colored Named items
- Overpowered entchantments
Commands
- /setvotes <player> set the amount of votes in the mySql / sqlite database
- /votes <player> Shows you <player>'s Vote stats
- /votes Shows you your Vote stats
- /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 show you votesites
- /voteversion Displays you the Version of VoteRanks
- /addvote <player> (optionally <amount>)
- /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 link
Goals
VoteRank's Goal - System:
You can add new Goals in the config.yml, also you can change the basic goals!
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 an diamont, without any Custom Name,or anyEntchantment.
- votes>100;Message=Nice damn, <votes> votes!!;Give=266:0,1,null,-1,&6Vote-Bar,-1,-1,-1
This gives you a Gold-Bar with the gold-colored name "Vote-Bar" if you got over 100 votes.It will also announce the player. -1 will disable the function for this item,null means no Entchantment 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 colored in RGB color-system(50,0,0), with the gold-colored name "Marius-Suit" and Explosion-Protection Level 1337.It will also announce the player.
Explanation:
- votes=1 this sets the amount of Votes you need to get this Goal
- votes<10 everytime the amount of votes are less than 10
- votes>10 everytime the amount of vote are greater than 10
- votes%10 everytime 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,amount' is the option the set up an Item reward === only from Version 0.1 - 0.9 ===
- Give=id:subid,amount,Enchantment,lvl of entchantment,Name,red,green,blue === only from Version 1.0 to above ===
- 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
- - Bsp. of a book.txt -
- 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 goal
- There is no need for any Order, but votes have to be the first Part of the Goal
maybe try command=kit vote <player> or what the syntax of that cmd is
can you show the command to issue "/kit vote" on the voting player?
hm good ways to get people to vote :D
@AccioAce
This sounds more like a bug in your config:
Admin Votes and the plugin should execute the Command "group set Regular", how does the plugin should now if it should execute the command ?
I could add a permission to exclude players/groups from triggering the execution of this command, so u could say admin doesn't trigger the execution of the command but idk. member would, maybe in that way that u can exclude players from reaching a specific goal, so not all command triggers would be blocked.
something like this: "voteranks.exclude.5" to block the execution of votes=5,...
would that help u ?
ps: im also working on 2 new Features:
I love this plugin a lot but this plugin need to be update badly. This plugin glitches. Please give an update. Example:Let say when you vote as an admin and players need vote to 3 votes to get to Regular. If admin or mod or donor vote and get up to 3 votes they turn into Regular. That glitch really need be fix asap.
- Thank You
@frostvincent I think what you want is
command=manuadd <player> RankNameHere
Which runs the /manuadd to the RankNameHere on the player who hit whatever vote amount this line is on (some permission plugin's command I'm assuming).
For reference, using PermissionBukkit I use command=perms player addgroup <player> Voter_1, where Voter_1 is the name of my rank.
@frostvincent
There is no Command "manuadd <player>" for voteranks... only addvote <player> <amount> which adds one vote or setvotes <player> <amount>
the < > are just to show you that this is a variable
so try /setvotes frostvincent 10 (Please note, because Votifier and Voteranks both works with Voteevents the addvote command could create a "lagg")
the player is automatically added to your db if he joins(and no error :D) manuadd is from Group Manager
I'm trying to use the command /manuadd <player> rank but it is not working. I believe it is because the command has to be inside the <> and the player is also in the <>. Currently I have it as command=<manuadd <player> rank> and it does not work. Is there any other way to do this?
I just had the problem happen in the middle of an online player's voting when he forgot to fill in his name on one of the sites.
@pielord17
I also noticed it, i think it crashes if a Player votes but he is offline,which corrupts the task which gives them the items
Vote rewards just broke, it has done this a couple times. Votes are still added but rewards aren't given and no messages happen in chat. A restart fixes it.
http://pastebin.com/fKRhJ2Cj
@pielord17
Hm the give function works at my test server...
that was my test config:
- votes=1;Message=Your first vote!;broadcast=<player> has 1 vote;Give=264:0,5,null,-1,null,-1,-1,-1;Give=1:3,8,null,-1,null,-1,-1,-1;Give=1:0,20,null,-1,null,-1,-1,-1
this gives me 5 Diamonds, / 8 Diorit and 20 Stone, lock into you latest.log maybe there was an error pre-processing the goal
I just noticed another problem. The give command is only giving 1 item now, one of mine is meant to give 5. Not a big deal though since I can use the Minecraft give command.
Edit: It isn't consistent, sometimes it gives the intended 5 sometimes it gives 1.
@pielord17
Again an old sql command :I hope i found all this time ... i blame dropbox :D
Voteranks 1.3.1
Okay votelist and voting with the wrong capitalization is working now. However, when one of my users, Ewen, votes it isn't storing it or something. It gives him the initial rewards each time and keeps his votes at 0. If I try to set his votes his next vote will set it back to 0. He changed his name in the past, I'm not sure if that is what is causing this.
@pielord17
The only bugs i found for case sensitive problems was for /addvote and /setvote command, with 1.3 i change addvote to ignore Upper and Lower case Problems.i think it is better to use the name like it is typed for /setvote
Ok i have to admit, i added a bug in setvote atm. if you add a vote for the player max, player XXXmax,XXXmaxXXX or maxXXX will also get a vote, but its easy to fix^^
With 1.2 i fixed
"A small change which should prevent duplicate user in sqlite with Up and Lower-Case typos"
idk if the problem was from 1.1
Thanks. Will this fix the case sensitivity too?
@1337Zero
Voteranks 1.3 uploaded...waiting for approvel
Voterank 1.3
if you don't want to wait here is a link for mediafire
Link Removed: http://www.mediafire.com/download/dz7s802uhaxwbcn/
@pielord17
the problem is that in your database are multiple users without UUID (a NickD1969 and Ptammies) in your top ten.
Im using to prevent duplicate entries in your topten list the uuid and saves them in a list but there was no UUID so it crashes
I fixed the bug and will upload the new version tomorow
@1337Zero
Link Removed: https://www.mediafire.com/?7qtc34hq52kyw91