Examples of EpicGate


Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

      myGateTags.clear();
      try
      {
        while (scanner.hasNext())
        {
          EpicGate newGate;
          line = scanner.nextLine().trim();
          if (line.startsWith("#") || line.isEmpty())
          {
            continue;
          }
          newGate = new EpicGate(line);
          ;
          General.myGates.put(newGate.getTag(), newGate);
          General.myGateTags.add(newGate.getTag());
        }

      }
      finally
      {
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

  private static void LinkGates()
  {

    for (String gateTag : myGateTags)
    {
      EpicGate gate = myGates.get(gateTag);
      if (gate.getTargetTag().length() > 0)
      {
        if (myGates.get(gate.getTargetTag()) != null)
        {
          myGates.get(gateTag).setTarget(myGates.get(gate.getTargetTag()));
        }
        else
        {
          myGates.get(gateTag).setTarget(null);
        }
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

    String result = "#Gate Tag|World|X|Y|Z|Target Tag\n";
    String line = "";

    for (String gateTag : myGateTags)
    {
      EpicGate gate = myGates.get(gateTag);
      line = gate.getTag() + ",";
      line = line + gate.getLocation().getWorld().getName() + ",";
      line = line + gate.getLocation().getBlockX() + ",";
      line = line + gate.getLocation().getBlockY() + ",";
      line = line + gate.getLocation().getBlockZ() + ",";
      line = line + gate.getTargetTag() + ",";
      line = line + gate.getDirection() + ",";
      line = line + BuildAllowed(gate) + ",";
      line = line + BuildNotAllowed(gate) + "\n";
      result = result + line;
    }
    return result;
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, false))
      {
        String tag = args[1];
        Player player = (Player) sender;
        EpicGate gate = new EpicGate(tag, player.getLocation().clone(), player.getLocation().getYaw());
        buildGate(gate, player.getWorld());
        buildLanding(gate, player.getWorld());
        General.myGateTags.add(tag);
        General.myGates.put(tag, gate);
        General.saveGates();
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

      if (args.length > 2)
      {
        if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
        {
          EpicGate gate = General.myGates.get(args[1]);
          if (gate != null)
          {
            EpicGate target = General.myGates.get(args[2]);
            if (target != null)
            {
              gate.setTarget(target);
              General.saveGates();
              General.loadGates();
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

  {
    if (args.length > 1 && !args[1].equalsIgnoreCase("?"))
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
      {
        EpicGate gate = General.myGates.get(args[1]);
        if (gate != null)
        {
          gate.setTarget(null);
          General.saveGates();
          General.loadGates();
          sender.sendMessage("[" + args[1] + "] no longer has a target.");
        }
        else
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

  {
    if (args.length > 1 && !args[1].equalsIgnoreCase("?"))
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, false))
      {
        EpicGate gate = General.myGates.get(args[1]);
        if (gate != null)
        {
          Player player = (Player) sender;
          clearGate(gate);
          clearLanding(gate);

          gate.setLocation(player.getLocation().clone());

          buildGate(gate, player.getWorld());
          buildLanding(gate, player.getWorld());

          General.myGates.put(args[1], gate);
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

  {
    if (args.length > 2 && !args[2].equalsIgnoreCase("?"))
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
      {
        EpicGate gate = General.myGates.get(args[1]);
        if (gate != null)
        {

          for (int i = 2; i < args.length; i++)
          {
            gate.addAllowed(args[i]);
          }

          General.myGates.put(args[1], gate);
          General.saveGates();
          General.loadGates();
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

  {
    if (args.length > 2 && !args[2].equalsIgnoreCase("?"))
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
      {
        EpicGate gate = General.myGates.get(args[1]);
        if (gate != null)
        {

          for (int i = 2; i < args.length; i++)
          {
            gate.removeAllowed(args[i]);
          }

          General.myGates.put(args[1], gate);
          General.saveGates();
          General.loadGates();
View Full Code Here

Examples of com.epicsagaonline.bukkit.EpicGates.objects.EpicGate

  {
    if (args.length > 2 && !args[2].equalsIgnoreCase("?"))
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
      {
        EpicGate gate = General.myGates.get(args[1]);
        if (gate != null)
        {

          for (int i = 2; i < args.length; i++)
          {
            gate.addNotAllowed(args[i]);
          }

          General.myGates.put(args[1], gate);
          General.saveGates();
          General.loadGates();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.