mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2025-01-09 09:17:44 +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("eventName", "IslandLevelCalculatedEvent");
|
||||||
keyValues.put("targetPlayer", targetPlayer);
|
keyValues.put("targetPlayer", targetPlayer);
|
||||||
keyValues.put("islandUUID", island.getUniqueId());
|
keyValues.put("islandUUID", island.getUniqueId());
|
||||||
|
if (addon.getSettings().isZeroNewIslandLevels()) {
|
||||||
|
keyValues.put("level", results.getLevel() - results.getInitialLevel());
|
||||||
|
} else {
|
||||||
keyValues.put("level", results.getLevel());
|
keyValues.put("level", results.getLevel());
|
||||||
|
}
|
||||||
keyValues.put("pointsToNextLevel", results.getPointsToNextLevel());
|
keyValues.put("pointsToNextLevel", results.getPointsToNextLevel());
|
||||||
keyValues.put("deathHandicap", results.getDeathHandicap());
|
keyValues.put("deathHandicap", results.getDeathHandicap());
|
||||||
keyValues.put("initialLevel", results.getInitialLevel());
|
keyValues.put("initialLevel", results.getInitialLevel());
|
||||||
|
Loading…
Reference in New Issue
Block a user