Further improved safe zone and war zone auto-rename process courtesy of Olof

This commit is contained in:
Brettflan 2011-10-23 09:36:37 -05:00
parent 2e34079a8e
commit 9710ec911e

View File

@ -62,7 +62,7 @@ public class Factions extends EntityCollection<Faction>
{
// if SafeZone has old pre-1.6.0 name, rename it to remove troublesome " "
Faction faction = this.getSafeZone();
if (faction.getTag().equals(ChatColor.GOLD+"Safe Zone"))
if (faction.getTag().contains(" "))
faction.setTag("SafeZone");
}
@ -77,7 +77,7 @@ public class Factions extends EntityCollection<Faction>
{
// if WarZone has old pre-1.6.0 name, rename it to remove troublesome " "
Faction faction = this.getWarZone();
if (faction.getTag().equals(ChatColor.DARK_RED+"War Zone"))
if (faction.getTag().contains(" "))
faction.setTag("WarZone");
}