fix: deprecated
All checks were successful
Gitea Actions Demo / Build-Gradle (push) Successful in 2m38s
All checks were successful
Gitea Actions Demo / Build-Gradle (push) Successful in 2m38s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user