Skip to content

Commit

Permalink
Removed announce advancements Close #87
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoRutigliano committed Jun 27, 2024
1 parent 324f400 commit b8cd601
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/lar/minecraft/hg/SpigotPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.Properties;

import org.bukkit.Difficulty;
import org.bukkit.GameRule;
import org.bukkit.Location;
import org.bukkit.Server;
import org.bukkit.World;
Expand Down Expand Up @@ -86,6 +87,7 @@ public void onEnable() {
ServerSchedulers.init(this);
serverId = ConfigUtils.getInt(ConfigProperty.server_id);
world.setDifficulty(Difficulty.NORMAL);
world.setGameRule(GameRule.ANNOUNCE_ADVANCEMENTS, false);

// Initialize MessageUtils for messages
MessageUtils.init();
Expand Down

0 comments on commit b8cd601

Please sign in to comment.