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;