Existing safe zones and war zones are now renamed to remove the extra " " if they have it, mainly for better /f claim compatibility but also to comply with the modified default names
This commit is contained in:
parent
4f7fd6dd96
commit
a9b1aad956
@ -58,6 +58,13 @@ public class Factions extends EntityCollection<Faction>
|
|||||||
faction.setTag("SafeZone");
|
faction.setTag("SafeZone");
|
||||||
faction.setDescription("Free from PVP and monsters");
|
faction.setDescription("Free from PVP and monsters");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// if SafeZone has old pre-1.6.0 name, rename it to remove troublesome " "
|
||||||
|
Faction faction = this.getSafeZone();
|
||||||
|
if (faction.getTag().equals("Safe Zone"))
|
||||||
|
faction.setTag("SafeZone");
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure the war zone faction exists
|
// Make sure the war zone faction exists
|
||||||
if ( ! this.exists("-2"))
|
if ( ! this.exists("-2"))
|
||||||
@ -66,6 +73,13 @@ public class Factions extends EntityCollection<Faction>
|
|||||||
faction.setTag("WarZone");
|
faction.setTag("WarZone");
|
||||||
faction.setDescription("Not the safest place to be");
|
faction.setDescription("Not the safest place to be");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// if WarZone has old pre-1.6.0 name, rename it to remove troublesome " "
|
||||||
|
Faction faction = this.getWarZone();
|
||||||
|
if (faction.getTag().equals("War Zone"))
|
||||||
|
faction.setTag("WarZone");
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user