diff --git a/src/main/java/net/Indyuce/mmocore/api/event/PlayerLevelUpEvent.java b/src/main/java/net/Indyuce/mmocore/api/event/PlayerLevelUpEvent.java index bf6deda0..4b8b41b5 100644 --- a/src/main/java/net/Indyuce/mmocore/api/event/PlayerLevelUpEvent.java +++ b/src/main/java/net/Indyuce/mmocore/api/event/PlayerLevelUpEvent.java @@ -27,6 +27,10 @@ public class PlayerLevelUpEvent extends PlayerDataEvent { return level; } + public int getGained() { + return level - getData().getLevel(); + } + public boolean hasProfession() { return profession != null; }