From 6b55783f5a4e88ee7be42e906edccb83aed0496d Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 30 Jul 2025 02:45:43 +0200 Subject: [PATCH] fix: deprecated --- .../java/de/hessj/environmentex/EnvironmentExCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environmentex/src/main/java/de/hessj/environmentex/EnvironmentExCommands.java b/environmentex/src/main/java/de/hessj/environmentex/EnvironmentExCommands.java index 8444ef1..79fadda 100755 --- a/environmentex/src/main/java/de/hessj/environmentex/EnvironmentExCommands.java +++ b/environmentex/src/main/java/de/hessj/environmentex/EnvironmentExCommands.java @@ -33,6 +33,7 @@ import com.destroystokyo.paper.profile.PlayerProfile; import com.destroystokyo.paper.profile.ProfileProperty; import org.bukkit.inventory.meta.SkullMeta; import org.bukkit.persistence.PersistentDataType; +import org.bukkit.scoreboard.Criteria; import org.bukkit.scoreboard.DisplaySlot; import org.bukkit.scoreboard.Objective; import org.bukkit.scoreboard.Score; @@ -69,8 +70,7 @@ public class EnvironmentExCommands implements CommandExecutor, Listener { if (board.getObjective(DisplaySlot.SIDEBAR) != null) { board.getObjective(DisplaySlot.SIDEBAR).unregister(); } - Objective o = board.registerNewObjective("test", "dummy", Component.text("Quest:")); - + Objective o = board.registerNewObjective("test", Criteria.DUMMY, Component.text("Quest:")); o.setDisplaySlot(DisplaySlot.SIDEBAR); Score score;