Skip to content

Commit

Permalink
update deprecated code in scoreboardManager
Browse files Browse the repository at this point in the history
  • Loading branch information
steve4744 committed Apr 11, 2024
1 parent 92263c8 commit f9f9619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/tntrun/datahandler/ScoreboardManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.bukkit.OfflinePlayer;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.Criteria;
import org.bukkit.scoreboard.DisplaySlot;
import org.bukkit.scoreboard.Objective;
import org.bukkit.scoreboard.Scoreboard;
Expand Down Expand Up @@ -59,7 +60,7 @@ private Scoreboard buildScoreboard() {
Scoreboard scoreboard = Bukkit.getScoreboardManager().getNewScoreboard();

if (config.getBoolean("special.UseScoreboard")) {
Objective o = scoreboard.registerNewObjective(PLUGIN_NAME, "waiting", PLUGIN_NAME);
Objective o = scoreboard.registerNewObjective(PLUGIN_NAME, Criteria.DUMMY, PLUGIN_NAME);
o.setDisplaySlot(DisplaySlot.SIDEBAR);

String header = FormattingCodesParser.parseFormattingCodes(config.getString("scoreboard.header", ChatColor.GOLD.toString() + ChatColor.BOLD + "TNTRUN"));
Expand Down

0 comments on commit f9f9619

Please sign in to comment.