Improve Flag.COLOR

This commit is contained in:
2026-03-06 22:46:01 +01:00
parent 3117556ac0
commit 5813d7fd3a
2 changed files with 4 additions and 5 deletions
@@ -119,11 +119,8 @@ public class BauScoreboard implements Listener {
@Override
public String getTitle() {
Region region = Region.getRegion(player.getLocation());
if (region.getType().isGlobal()) return "§eSteam§8War";
String colorCode = "§e";
if (region.getRegionData().has(Flag.COLOR).isReadable()) {
colorCode = "§" + region.getRegionData().get(Flag.COLOR).getWithDefault().getColorCode();
}
if (region.getRegionData().has(Flag.COLOR).notVisibleInScoreboard()) return "§eSteam§8War";
String colorCode = "§" + region.getRegionData().get(Flag.COLOR).getWithDefault().getColorCode();
return colorCode + "■ §eSteam§8War " + colorCode + ""; // ■
}
});