From 187e491bea6dd8498c1f91df7827223859c95565 Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 10 Jan 2020 14:05:00 -0800 Subject: [PATCH] Updated to BentoBox 1.11.0 API Fixes https://github.com/BentoBoxWorld/Level/issues/117 --- pom.xml | 8 +++++--- .../world/bentobox/level/calculators/PlayerLevel.java | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index f8d0db7..59cbd94 100644 --- a/pom.xml +++ b/pom.xml @@ -59,13 +59,13 @@ 2.0.2 1.14.4-R0.1-SNAPSHOT - 1.9.0-SNAPSHOT + 1.11.0-SNAPSHOT ${build.version}-SNAPSHOT -LOCAL - 1.9.1 + 1.9.2 @@ -242,9 +242,11 @@ maven-javadoc-plugin 3.0.1 - public + private false -Xdoclint:none + ${java.home}/bin/javadoc + 8 diff --git a/src/main/java/world/bentobox/level/calculators/PlayerLevel.java b/src/main/java/world/bentobox/level/calculators/PlayerLevel.java index 90e3f3f..00d3e60 100644 --- a/src/main/java/world/bentobox/level/calculators/PlayerLevel.java +++ b/src/main/java/world/bentobox/level/calculators/PlayerLevel.java @@ -66,7 +66,7 @@ public class PlayerLevel { keyValues.put("pointsToNextLevel", calc.getResult().getPointsToNextLevel()); keyValues.put("deathHandicap", calc.getResult().getDeathHandicap()); keyValues.put("initialLevel", calc.getResult().getInitialLevel()); - addon.getServer().getPluginManager().callEvent(new AddonEvent().builder().addon(addon).keyValues(keyValues).build()); + AddonEvent.builder().addon(addon).keyValues(keyValues).build(); Results results = ilce.getResults(); // Save the results island.getMemberSet().forEach(m -> addon.setIslandLevel(world, m, results.getLevel()));