Fixed arena titles showing underscores.

This commit is contained in:
2022-06-25 11:24:02 -04:00
parent ca7aed303f
commit f8046db1df

View File

@@ -828,7 +828,7 @@ public class ArenaManager implements Listener {
if (arena != null){ // Did this player move into an arena's bounding box? if (arena != null){ // Did this player move into an arena's bounding box?
if (this.playersInArenas.get(player) != arena){ // Is the arena they entered different than the one they were last in? (Including not in an arena) if (this.playersInArenas.get(player) != arena){ // Is the arena they entered different than the one they were last in? (Including not in an arena)
player.sendTitle(ChatColor.AQUA + "" + arena.getName(), ChatColor.GOLD + "" + arena.getSubtitle(), 10, 70, 20); // Display a title screen with the arena's name. player.sendTitle(ChatColor.AQUA + "" + arena.getName().replaceAll("_", " "), ChatColor.GOLD + "" + arena.getSubtitle(), 10, 70, 20); // Display a title screen with the arena's name.
this.playersInArenas.put(player, arena); // Store which arena the player is in for future checks. this.playersInArenas.put(player, arena); // Store which arena the player is in for future checks.
} }