From 9710ec911ee3a534f316fe80ab7c88d9551e8d67 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Sun, 23 Oct 2011 09:36:37 -0500 Subject: [PATCH] Further improved safe zone and war zone auto-rename process courtesy of Olof --- src/com/massivecraft/factions/Factions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/Factions.java b/src/com/massivecraft/factions/Factions.java index 5fdd705e..250de1c2 100644 --- a/src/com/massivecraft/factions/Factions.java +++ b/src/com/massivecraft/factions/Factions.java @@ -62,7 +62,7 @@ public class Factions extends EntityCollection { // 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 { // 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"); }