mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-27 05:28:25 +01:00
Everything from above build
(Except the test messages, so download away!)
This commit is contained in:
parent
e692419576
commit
9ccc487c99
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user