new method

This commit is contained in:
Indyuce 2019-09-01 15:00:42 +02:00
parent 37e9443983
commit ac84e94697

View File

@ -27,6 +27,10 @@ public class PlayerLevelUpEvent extends PlayerDataEvent {
return level;
}
public int getGained() {
return level - getData().getLevel();
}
public boolean hasProfession() {
return profession != null;
}