forked from SteamWar/SteamWar
Add Unified GameModeConfig
This commit is contained in:
+2
-2
@@ -43,8 +43,8 @@ public class RegionScoreboardElement implements ScoreboardElement {
|
||||
@Override
|
||||
public String get(Region region, Player p) {
|
||||
if (region.getType().isGlobal()) return null;
|
||||
if (!region.getGameModeConfig().isLoaded()) return null;
|
||||
List<String> names = region.getGameModeConfig().getServer().getChatNames();
|
||||
if (!region.getGameModeConfig().loaded) return null;
|
||||
List<String> names = region.getGameModeConfig().Server.ChatNames;
|
||||
if (names.isEmpty()) return null;
|
||||
return "§e" + BauSystem.MESSAGE.parse("SCOREBOARD_REGION", p) + "§8: §7" + names.get(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user