mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-04 17:49:53 +01:00
Further improved safe zone and war zone auto-rename process courtesy of Olof
This commit is contained in:
parent
2e34079a8e
commit
9710ec911e
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user