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:
Ursprung
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;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren