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
-
View User Profile
-
Send Message
Posted Apr 22, 2015@pielord17
just upload the database somewhere idk mediafire or some equal file sharer
-
View User Profile
-
Send Message
Posted Apr 21, 2015@1337Zero
Okay, how should I give it to you? I just realized that the voteversion command I actually just didn't have permission for. OPed right now and votelist still doesn't work though.
-
View User Profile
-
Send Message
Posted Apr 21, 2015@pielord17
i really don't know why this should happen, maybe its caused by the sql database which gives nothing back ?
or the first 10 entries of your database got the same name ... which would be really strange
if you give it to me i can test ist :D
-
View User Profile
-
Send Message
Posted Apr 21, 2015@1337Zero
Nope. http://pastebin.com/gavyXeay
-
View User Profile
-
Send Message
Posted Apr 21, 2015@pielord17
Could it be that
is set to false ? This would disable the /votelist sidebox
-
View User Profile
-
Send Message
Posted Apr 21, 2015@1337Zero
Voting works fine and rewards work, I have Votifier, it is just capitalized names fail, I have another votelistener that logs them to a text file so I can see that they happened. The commands don't fail they just don't open the sidebox. /votes works fine though. I have Vault too. I am not using MySQL though, could that be the problem? Edit: Also my Spigot is 23 versions behind apparently, updating it now.
-
View User Profile
-
Send Message
Posted Apr 21, 2015@pielord17
I tested it with the newest spigot build (1.8.3) and
i have to admit:
-
View User Profile
-
Send Message
Posted Apr 20, 2015@1337Zero
It wasn't working when I tested it, I'm having to manually add votes to people. The version command doesn't seem to be working, I'll double check that I'm using 1.2, pretty sure I am. UUID support works. Edit: The jar is named 1.2.3. I am using Spigot 1.8.3 if that's a problem. The votelist command also doesn't work.
-
View User Profile
-
Send Message
Posted Apr 19, 2015@pielord17
with 1.2 Upper and Lower case typos should be ignored and given to the right person
-
View User Profile
-
Send Message
Posted Apr 11, 2015Would it be possible to just make it ignore capitalization? My users keep voting without properly capitalizing their own names.
-
View User Profile
-
Send Message
Posted Jan 31, 2015@1337Zero
Me again this should work with sqlite...
Link Removed: http://www.mediafire.com/download/0je1kye6ffd94i6/VoteRanks1.2.2.jar
mysql and sqlite have diffrent commands to check if a table has a specific column... but this should work
remember:
BACKUP and your OWN RISK
-
View User Profile
-
Send Message
Posted Jan 31, 2015@pielord17
Im working on a UUID version the main problem is, Votifier gives you only a name of a voter it would be really annoying to vote with your UUID :)
Here is a dev build:
backup your database to prevent data lose
-it checks if a player joins if the name from the player is the same as the name in the database and updates the database if needed
-on plugin load it checks if the database has a UUID column and add it if not
testet with mysql but not with sqlite
Use on your own risk
Link Removed: http://www.mediafire.com/download/a7620cpc63413ae/VoteRanks1.2.1.jar
-
View User Profile
-
Send Message
Posted Jan 29, 2015Will this be updating for UUIDs? I really hope it does.
-
View User Profile
-
Send Message
Posted Jan 16, 2015The UUID conversion is imminent, please update this plugin. It has become an important part on my server
-
View User Profile
-
Send Message
Posted Jul 3, 2014@Dutch_Boy
Give=id:subid,amount,Enchantment,lvl of entchantment,Name,red,green,blue this is the build of the Give-Tag
Its a bit complicated but so its support all features for an item i could think of
the red,green,blue part only works with leather armor, cause iron etc cant be colored
-1 means you don't want to setup any custom Color, or level, the plugin will ignore this
null means you don't want to add an entchantment or an extra name
i added some examples from (on my server) working settings
I added error-trapping but please be sure what you do, worst case is a server crash, best case the server will post the error into the log and the player won't get anything
-
View User Profile
-
Send Message
Posted Jul 1, 2014i like to see a more in dept config explanation.
Why: - votes=1;Message=Your first vote!;broadcast=<player> has 1 vote;Give=388:0,1,null,-1,null,-1,-1,-1
Why all the null,-1 ?? And does 0,1 mean that you give 0,1% or 1 item?
-
View User Profile
-
Send Message
Posted Mar 18, 2014@NoHoPeLess
i would say that this is an char-error maybe you used something the server don't know :D like äöü, maybe it's caused by the formation of the config.yml file
-
View User Profile
-
Send Message
Posted Mar 18, 2014thx :D some question about that... test-example:
He list me an '?' is something wrong? :D
-
View User Profile
-
Send Message
Posted Mar 18, 2014@NoHoPeLess
sure you can, just use &1-&9 / &a - &e to color your messages
-
View User Profile
-
Send Message
Posted Mar 18, 2014This was amazing!
Can i add color codes to the broadcast?