From 1a8c97b38bb788c2bbc814291a8c004d14e90572 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 26 Nov 2022 23:10:08 -0800 Subject: [PATCH] Put back what was accidentally removed. --- src/main/java/world/bentobox/boxed/Settings.java | 14 ++++++++++++++ .../boxed/listeners/AdvancementListener.java | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) 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;