if (this.getColor() != ChatColor.RESET) elt.setAttribute("color", this.getColor().name());
if (this.maxsize != null) elt.setAttribute("maxsize", Integer.toString(this.maxsize));
if (this.minsize != null) elt.setAttribute("minsize", Integer.toString(this.minsize));
if (this.playerlives > 0) elt.setAttribute("lives", Integer.toString(this.playerlives));
PlayerKit teamKit = this.getKit();
if (teamKit != null) elt.setAttribute("kit", teamKit.getName());
if (this.spawnRegions != null)
{
Element spawnElement = new Element("spawn");
for (AutoRefRegion reg : this.spawnRegions)