diff --git a/src/main/java/world/bentobox/boxed/Settings.java b/src/main/java/world/bentobox/boxed/Settings.java index d10e5c1..c033e55 100644 --- a/src/main/java/world/bentobox/boxed/Settings.java +++ b/src/main/java/world/bentobox/boxed/Settings.java @@ -1829,4 +1829,18 @@ public class Settings implements WorldSettings { public void setGenerateMobs(boolean generateMobs) { this.generateMobs = generateMobs; } + + /** + * @return the denyVisitorAdvancements + */ + public boolean isDenyVisitorAdvancements() { + return denyVisitorAdvancements; + } + + /** + * @param denyVisitorAdvancements the denyVisitorAdvancements to set + */ + public void setDenyVisitorAdvancements(boolean denyVisitorAdvancements) { + this.denyVisitorAdvancements = denyVisitorAdvancements; + } } diff --git a/src/main/java/world/bentobox/boxed/listeners/AdvancementListener.java b/src/main/java/world/bentobox/boxed/listeners/AdvancementListener.java index d879362..a690906 100644 --- a/src/main/java/world/bentobox/boxed/listeners/AdvancementListener.java +++ b/src/main/java/world/bentobox/boxed/listeners/AdvancementListener.java @@ -28,7 +28,6 @@ import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerPortalEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; -import world.bentobox.bentobox.BentoBox; import world.bentobox.bentobox.api.events.island.IslandNewIslandEvent; import world.bentobox.bentobox.api.events.team.TeamJoinedEvent; import world.bentobox.bentobox.api.events.team.TeamLeaveEvent;