3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 04:50:06 +01:00

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

Dieser Commit ist enthalten in:
EvilSeph 2012-10-29 12:37:45 -04:00
Ursprung aba7e2faf1
Commit 3047a424bb

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;
} }