mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2025-01-08 00:38:22 +01:00
Remove initial island level from fireIslandLevelCalcEvent
if addon has zero island level set https://github.com/BentoBoxWorld/Level/issues/189
This commit is contained in:
parent
5485627376
commit
aed06b74c0
@ -205,7 +205,11 @@ public class LevelsManager {
|
||||
keyValues.put("eventName", "IslandLevelCalculatedEvent");
|
||||
keyValues.put("targetPlayer", targetPlayer);
|
||||
keyValues.put("islandUUID", island.getUniqueId());
|
||||
keyValues.put("level", results.getLevel());
|
||||
if (addon.getSettings().isZeroNewIslandLevels()) {
|
||||
keyValues.put("level", results.getLevel() - results.getInitialLevel());
|
||||
} else {
|
||||
keyValues.put("level", results.getLevel());
|
||||
}
|
||||
keyValues.put("pointsToNextLevel", results.getPointsToNextLevel());
|
||||
keyValues.put("deathHandicap", results.getDeathHandicap());
|
||||
keyValues.put("initialLevel", results.getInitialLevel());
|
||||
|
Loading…
Reference in New Issue
Block a user