Update ExpCommand with levels support. Fixes BUKKIT-2683 and partially fixes BUKKIT-2671

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot
2012-10-29 05:19:20 -04:00
parent bc6c8cb8c0
commit 20f7f0c725
2 changed files with 57 additions and 20 deletions

View File

@@ -370,6 +370,13 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
*/
public void giveExp(int amount);
/**
* Gives the player the amount of experience levels specified. Levels can be taken by specifying a negative amount.
*
* @param amount amount of experience levels to give or take
*/
public void giveExpLevels(int amount);
/**
* Gets the players current experience points towards the next level.
* <p />