From 9ccc487c99c8a96b10341714c62b287e8e145ed2 Mon Sep 17 00:00:00 2001 From: Aria Sangarin Date: Sun, 8 Mar 2020 23:35:07 +0100 Subject: [PATCH] Everything from above build (Except the test messages, so download away!) --- .../player/profess/event/trigger/LevelUpEventTrigger.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/api/player/profess/event/trigger/LevelUpEventTrigger.java b/src/main/java/net/Indyuce/mmocore/api/player/profess/event/trigger/LevelUpEventTrigger.java index 2ae18ae9..cec0414e 100644 --- a/src/main/java/net/Indyuce/mmocore/api/player/profess/event/trigger/LevelUpEventTrigger.java +++ b/src/main/java/net/Indyuce/mmocore/api/player/profess/event/trigger/LevelUpEventTrigger.java @@ -20,15 +20,14 @@ public class LevelUpEventTrigger implements EventTriggerHandler { PlayerData player = event.getData(); PlayerClass profess = player.getProfess(); - player.getPlayer().sendMessage("Test Message: " + event.getNewLevel()); if(event.hasProfession()) { String prof = event.getProfession().getId().toLowerCase(); processTrigger(player, profess, "level-up-" + prof); processTrigger(player, profess, "level-up-" + prof + "-" + event.getNewLevel()); } else { processTrigger(player, profess, "level-up"); - processTrigger(player, profess, "level-up-" + event.getNewLevel()); - if(profess.getMaxLevel() == event.getNewLevel()) + processTrigger(player, profess, "level-up-" + (event.getNewLevel() - 1)); + if(profess.getMaxLevel() == (event.getNewLevel() - 1)) processTrigger(player, profess, "level-up-max"); } }