mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
Expose API for giving and taking experience levels for use with ExpCommand's new behaviour with Minecraft 1.4. Adds BUKKIT-2739
This commit is contained in:
parent
aba7e2faf1
commit
3047a424bb
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue