diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 3449446052..a1e9f85cd9 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -539,6 +539,10 @@ public class CraftPlayer extends CraftHumanEntity implements Player { getHandle().giveExp(exp); } + public void giveExpLevels(int levels) { + getHandle().levelDown(levels); + } + public float getExp() { return getHandle().exp; }