Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Scoreboard: add switch custom scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Jul 28, 2023
1 parent a3fccd1 commit e48d9cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/flectone/managers/FPlayerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public class FPlayerManager {
private static final Set<FPlayer> mutedPlayers = new HashSet<>();

public static void setScoreBoard() {
scoreBoard = Bukkit.getScoreboardManager().getNewScoreboard();
scoreBoard = Main.config.getBoolean("scoreboard.custom") ?
Bukkit.getScoreboardManager().getNewScoreboard() : Bukkit.getScoreboardManager().getMainScoreboard();
}

public static Scoreboard getScoreBoard() {
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# █▀ █▄▄ █▄▄ ▀▄▄ █ ▀▄▀ █ ▀█ █▄▄ ▀▄▄ █ █ █▀█ █
language: en
database: "database"
scoreboard:
custom: true

color:
first: "#1abaf0"
Expand Down

0 comments on commit e48d9cd

Please sign in to comment.