{
if(ezp.getMode() == EpicZoneMode.None)
{
if(data.length > 2)
{
EpicZone zone = General.myZones.get(data[2].trim());
if (zone != null)
{
String messageText;
SendMessage(event, ChatColor.GOLD + "Zone: " + ChatColor.GREEN + zone.getName() + ChatColor.GOLD + " Tag: " + ChatColor.GREEN + "" + zone.getTag());
if(zone.getCenter() != null)
{
SendMessage(event, ChatColor.GOLD + "Shape: " + ChatColor.GREEN + "Circle " + ChatColor.WHITE + "| " + ChatColor.GOLD + "Radius: " + ChatColor.GREEN + "" + zone.getRadius());
}
else
{
SendMessage(event, ChatColor.GOLD + "Shape: " + ChatColor.GREEN + "Polygon " + ChatColor.WHITE + "| " + ChatColor.GOLD + "Points " + ChatColor.GREEN + "(" + zone.getPolygon().npoints + ")");
}
if(zone.hasChildren())
{
messageText = ChatColor.GOLD + "Child Zone Tags:" + ChatColor.GREEN + "";
for(String childTag: zone.getChildrenTags())
{
messageText = messageText + " " + childTag;
}
SendMessage(event, messageText);
}
SendMessage(event, ChatColor.GOLD + "Enter Text: " + ChatColor.GREEN + "" + zone.getEnterText());
SendMessage(event, ChatColor.GOLD + "Exit Text: " + ChatColor.GREEN + "" + zone.getExitText());
if(zone.hasParent())
{
SendMessage(event, ChatColor.GOLD + "Parent Zone: " + ChatColor.GREEN + zone.getParent().getName() + ChatColor.GOLD + " Tag: " + ChatColor.GREEN + zone.getParent().getTag());
}
SendMessage(event, ChatColor.GOLD + "Zone Flags: ");
messageText = "";
if(zone.hasPVP())
{
messageText = messageText + ChatColor.AQUA + "PVP: " + ChatColor.GREEN + "ON ";
}
else
{
messageText = messageText + ChatColor.AQUA + "PVP: " + ChatColor.RED + "OFF ";
}
if(zone.getAllowFire())
{
messageText = messageText + ChatColor.AQUA + "FIRE: " + ChatColor.GREEN + "ON ";
}
else
{
messageText = messageText + ChatColor.AQUA + "FIRE: " + ChatColor.RED + "OFF ";
}
if(zone.getAllowExplode())
{
messageText = messageText + ChatColor.AQUA + "EXPLODE: " + ChatColor.GREEN + "ON ";
}
else
{
messageText = messageText + ChatColor.AQUA + "EXPLODE: " + ChatColor.RED + "OFF ";
}
if(zone.hasRegen())
{
SendMessage(event, messageText);
SendMessage(event, ChatColor.AQUA + "REGEN: " + ChatColor.GREEN + "Delay [" + zone.getRegenDelay() + "] Amount[" + zone.getRegenAmount() + "] Interval[" + zone.getRegenInterval() + "]");
}
else
{
messageText = messageText + ChatColor.AQUA + "REGEN: " + ChatColor.RED + "OFF ";
SendMessage(event, messageText);
}
messageText = ChatColor.AQUA + "MOBS:" + ChatColor.GREEN + "";
for(String mobType: zone.getAllowedMobs())
{
messageText = messageText + " " + mobType.replace("org.bukkit.craftbukkit.entity.Craft", "");
}
SendMessage(event, messageText);
}