From d4c6af4633c6ab91426972fbdf71d2c5c446bfa9 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 6 May 2020 10:47:53 +0200 Subject: [PATCH] feat: dont announce advancements --- varo/src/main/java/de/cliffbreak/varo/Varo.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/varo/src/main/java/de/cliffbreak/varo/Varo.java b/varo/src/main/java/de/cliffbreak/varo/Varo.java index fa24302..9bdb177 100644 --- a/varo/src/main/java/de/cliffbreak/varo/Varo.java +++ b/varo/src/main/java/de/cliffbreak/varo/Varo.java @@ -5,6 +5,7 @@ import java.io.IOException; import java.util.ArrayList; import org.bukkit.Difficulty; +import org.bukkit.GameRule; import org.bukkit.NamespacedKey; import org.bukkit.World; import org.bukkit.World.Environment; @@ -16,6 +17,7 @@ import de.cliffbreak.varo.commands.VaroCommand; import de.cliffbreak.varo.listeners.BannedItemListener; import de.cliffbreak.varo.listeners.ChatListener; import de.cliffbreak.varo.listeners.CreatureSpawnListener; +import de.cliffbreak.varo.listeners.EntityDamageByEntityListener; import de.cliffbreak.varo.listeners.EntityRegainHealthListener; import de.cliffbreak.varo.listeners.PlayerClientOptionsChangeListener; import de.cliffbreak.varo.listeners.PlayerDeathListener; @@ -57,6 +59,7 @@ public class Varo extends JavaPlugin { for (World world : getServer().getWorlds()) { if (world.getEnvironment() == Environment.NORMAL) { world.setDifficulty(Difficulty.HARD); + world.setGameRule(GameRule.ANNOUNCE_ADVANCEMENTS, false); } } getServer().removeRecipe(NamespacedKey.minecraft("fishing_rod"));