Package com.bukkit.epicsaga.EpicZones

Examples of com.bukkit.epicsaga.EpicZones.EpicZone


  private static void reconcileChildren()
  {

    for(String zoneTag: myZoneTags)
    {
      EpicZone zone = myZones.get(zoneTag);
      if(zone.hasChildren())
      {
        //System.out.println("Attaching Child Zones To " + zone.getName() + "[" + zone.getTag() + "].");
        for(String child: zone.getChildrenTags())
        {
          EpicZone childZone = myZones.get(child);
          //System.out.println("\t" + childZone.getName() + "[" + childZone.getTag() + "] added as a child of " + zone.getName() + "[" + zone.getTag() + "].");

          childZone.setParent(zone);
          zone.addChild(childZone);

          myZones.remove(child);
          myZones.put(child, childZone);
        }
View Full Code Here


      if(data.length > 2 && data[2].length() > 0)
      {
        String tag = data[2].replaceAll("[^a-zA-Z0-9]", "");
        if(General.myZones.get(tag) == null)
        {
          EpicZone zone = new EpicZone();
          zone.setTag(tag);
          zone.setName(tag);
          Set(playerID, "editzone", zone);
          Set(playerID, "mode", EpicZoneMode.ZoneDraw);
          Set(playerID, "world", event.getPlayer().getWorld().getName());
          SendMessage(event, "Zone Created. Start drawing your zone with the zone edit tool. Type /zone save when you are done drawing.");
        }
View Full Code Here

    String result = "#Zone Tag|World|Zone Name|Flags|Enter Message|Exit Message|Floor|Ceiling|Child Zones|PointList\n";
    String line = "";

    for(String tag: myZoneTags)
    {
      EpicZone z = myZones.get(tag);
      line = z.getTag() + "|";
      line = line + z.getWorld() + "|";
      line = line + z.getName() + "|";
      line = line + BuildFlags(z) + "|";
      line = line + z.getEnterText() + "|";
      line = line + z.getExitText() + "|";
      line = line + z.getFloor() + "|";
      line = line + z.getCeiling() + "|";
      line = line + BuildChildren(z) + "|";
      line = line + BuildPointList(z) + "\n";
      result = result + line;
    }
View Full Code Here

TOP

Related Classes of com.bukkit.epicsaga.EpicZones.EpicZone

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.