13
0
geforkt von Mirrors/Paper

Expose API for giving and taking experience levels for use with ExpCommand's new behaviour with Minecraft 1.4. Adds BUKKIT-2739

By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2012-10-29 12:37:45 -04:00
Ursprung c464cba5b2
Commit 026494018e

Datei anzeigen

@ -539,6 +539,10 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
getHandle().giveExp(exp); getHandle().giveExp(exp);
} }
public void giveExpLevels(int levels) {
getHandle().levelDown(levels);
}
public float getExp() { public float getExp() {
return getHandle().exp; return getHandle().exp;
} }