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:

CommandsDescriptionPermissionsDefault
/xpRankShow the player their rank, level and total xpxprank.metrue
/xpRank [playerName]Show the rank, level and total xp of the player with that namexprank.othersop
/xpRank top [n players]Display the top players. n players is optionalxprank.toptrue
/xpRank online [n players]Display the top online players. n players is optionalxprank.onlinetrue
/xpRank debugToggles debug output to the console on or off (off by default)xprank.debugop
/xpRank destroyDatabaseBackups the current database and creates a new empty onexprank.destroyop
no commandPermission node for all commandsxprank.*

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


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files