XpRank
XpRank
Get your ranking based on xp/exp, compared to other players on your server.
Who is the best at collecting those xp orbs!
Version 0.0.9 is here! Updated for 1.3.1
This plugin has nothing to do with permissions ranks - think of it as a constantly updated highscore list based on players xp level
Description:
This plugin keeps track of the level and total xp/exp of all the player on your server. (Both online and offline) You can get your rank compared to other players and you can see the rank of other players.
You can also get a top list, or leaderboard, of the players with the most xp on the server.
Plugin idea:
The idea for this plugin came from FaumeMC's twitter.
Check out his youtube channel here.
If you want to see some of the commands in action you can hop on Faume's Alpha vs Beta server (currently down) and do /xpRank help to see the commands you can try.
You can learn more about the alpha vs beta pvp server here.
Features:
- The plugin is mainly a score list of players exp values.
- Keeps track of both offline and online players xp level.
- Allows you to lookup the rank and xp level of any player (both offline and online).
- Top 10 lists show the top players and their rank.
- Command to just show the top players that are online.
Commands and Permission:
| Commands | Description | Permissions | Default |
| /xpRank | Show the player their rank, level and total xp | xprank.me | true |
| /xpRank [playerName] | Show the rank, level and total xp of the player with that name | xprank.others | op |
| /xpRank top [n players] | Display the top players. n players is optional | xprank.top | true |
| /xpRank online [n players] | Display the top online players. n players is optional | xprank.online | true |
| /xpRank debug | Toggles debug output to the console on or off (off by default) | xprank.debug | op |
| /xpRank destroyDatabase | Backups the current database and creates a new empty one | xprank.destroy | op |
| no command | Permission node for all commands | xprank.* |
Permission help and notes:
The plugin has been tested with both permissionsEX and bPermissions.
Players will have access to all commands that are labeled true in the default section in the table above.
Unless a "negative" permission node is used (ei. -xprank.top or ^xprank.top)
A player will always need the xprank.me node to be able to execute ANY of the other commands.
Example:
If you want a player only to have the /xpRank top and the /xpRank command and that player is not op:
PEX:
users: deltini: permissions: - xprank.me - xprank.top - -xprank.*
bPermissions:
users: deltini: permissions: - xprank.top - xprank.me - ^xprank.online - ^xprank.help
Known bugs
- The vanilla command /xp [player] [expValue] does not trigger the playerExpChangeEvent so the database ONLY updates when a player gains xp naturally.
- If you delete player files and reload the server, the xp value of that player will not be updated until he gains some xp again.
I discovered a null pointer exception that may occur when the plugin get's disabled. I will look into this.
ToDo
Performance improvements?Turn debug output on or off by command- Multiverse support. (Not coming in the near future)
- ? Leave a comment or ticket if you have an idea for the plugin ?
Note:
This is the first plugin I have developed. I'm still learning.
Any suggestions and are very welcome!
Enjoy the plugin - and let me know what you think.
- Deltini
-
View User Profile
-
Send Message
Posted May 24, 2013@keonn Hi. I have just tested the current version with 1.5.2. And it works no problem. Enjoy
-
View User Profile
-
Send Message
Posted May 18, 2013Any chance for an update for 1.5 versions?
-
View User Profile
-
Send Message
Posted Jan 2, 2013@Nightsaver341
I have not tested it with Group Manager but it should work. Let me know if you have problems. I will not be able to update it any time soon since i'm currently working on another project. Sorry.
- Deltini
-
View User Profile
-
Send Message
Posted Dec 26, 2012Does this plugin support Group Manager? If it doesn't could you make it. This would really help me server.
-
View User Profile
-
Send Message
Posted Sep 11, 2012@lucasdidur Hi. Yeah, that should be possible. It's not gonna happen in the near future unfortunately. :( But it is something I will look into.
Thanks for the suggestion.
- Deltini
-
View User Profile
-
Send Message
Posted Sep 4, 2012Hello,
Could you add support to MySQL? I would like to get these values and use on my website.
-
View User Profile
-
Send Message
Posted Aug 28, 2012Hi People.
I found a major bug in 0.0.8 . It's has been fixed. So please update to 0.0.9 to avoid any problems.
Just replace the jar in you plugin folder and everything should be fine. Sorry for the inconvenience.
- Deltini
-
View User Profile
-
Send Message
Posted Aug 14, 2012@Mudsquisher Absolutely. I didn't know that multiverse could separate stats - only that it could separate inventories. I will look in to this in the future. I might have to hook into multiverse to detect which world share stats.. But we will see.
Thanks for the suggestion.
- Deltini
-
View User Profile
-
Send Message
Posted Aug 13, 2012@deltini Well with Multiverse-Inventories, you can separate the experience levels between each world. So with Multiverse-Core, you setup your worlds and create new ones, then with Multiverse-Inventories you separate the stats, inventories and exp. So I think it would be neat to have a database for each world with Multiverse support.
-
View User Profile
-
Send Message
Posted Aug 13, 2012@Mudsquisher
Sure? But I was unaware that there was any way to have different xp levels in different worlds? For instance, in vanilla minecraft the xp level is shared between all the worlds(normal, nether and the end).
So i'm not entirely sure I understand what you mean.
-
View User Profile
-
Send Message
Posted Aug 12, 2012This is a great plugin! Anyway to add multiverse support? Such as separate ranks for each worlds.
-
View User Profile
-
Send Message
Posted Aug 12, 2012S'alright, I'm just planning a server where xp is a source of power. This is the best (and only)plugin that caters to xp ranking, so I'm just making sure that I don't have to go looking some more.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@JackFrost21 Yes I do. I will probably time to get it done within next week. (I hope). Sorry it has not been done yet. - Deltini
-
View User Profile
-
Send Message
Posted Aug 11, 2012Will you be updating soon?
-
View User Profile
-
Send Message
Posted Jul 25, 2012@deltini
It does. In that case it's not what i need but it might be something i could use.
-
View User Profile
-
Send Message
Posted Jul 25, 2012@krone6 Okay. I will try to explain. The rank just indicates what number you are on the top list. So if you have 100 xp and only one player has more than you, you would have rank 2 and the other player would be number 1.
If you die and lose your xp your "rank" will reflect that. So if there is 5 people with more than 0 xp you would be at rank 6. Also this is not permissions ranks. This is just a number that get assigned to players. Think of it as a live score board of xp values.
it does not track high scores. So if you die and was number 1 on the list you loose that spot. I could implement that, if that is more like what you are looking for.
I hope that clears things up. If not feel free to ask more questions. - Martin/deltini
-
View User Profile
-
Send Message
Posted Jul 24, 2012@deltini
I'm still a little confused. If I am at lvl 10 and update my rank to rank 2 from rank 1 but die what will happen next? My exp is now 0, does that mean i am back to rank 1 and not rank 2 or do i stay in the rank i am in?
-
View User Profile
-
Send Message
Posted Jul 24, 2012@krone6 Yep. It updates the exp value on any natural exp change.
-
View User Profile
-
Send Message
Posted Jul 24, 2012What if you die? How does the plugin handle exp resetting back to 0 on deaths?
-
View User Profile
-
Send Message
Posted Jul 3, 2012@imilkywayz Thanks a lot :) Had fun making it so far.