mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
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>
This commit is contained in:
parent
c464cba5b2
commit
026494018e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user