Examples of EpicGate


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.removeNotAllowed(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 > 1 && !args[1].equalsIgnoreCase("?"))
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
      {
        EpicGate gate = General.myGates.get(args[1]);
        if (gate != null)
        {
          clearGate(gate);
          clearLanding(gate);
          General.myGates.remove(args[1]);
View Full Code Here

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

      {
        Help(sender, "info");
      }
      else
      {
        EpicGate gate = GetGateByLandingForLocation(player.getLocation());
        if (gate != null)
        {
          String message = "";
          message = ChatColor.GOLD + "[" + gate.getTag() + "]" + ChatColor.GREEN + " in " + ChatColor.GOLD + "[" + gate.getLocation().getWorld().getName() + "]" + ChatColor.GREEN + " at " + ChatColor.GOLD + "[" + gate.getLocation().getBlockX() + "," + gate.getLocation().getBlockY() + "," + gate.getLocation().getBlockZ() + "]";
          if (gate.getTarget() != null)
          {
            message = message + ChatColor.GREEN + " linked to " + ChatColor.GOLD + "[" + gate.getTargetTag() + "].";
          }
          else
          {
            message = message + ChatColor.GREEN + ".";
          }
View Full Code Here

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

    for (String gateTag : General.myGateTags)
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
      {
        String message = "";
        EpicGate gate = General.myGates.get(gateTag);
        if (gate != null)
        {
          message = ChatColor.GOLD + "[" + gate.getTag() + "]" + ChatColor.GREEN + " in " + ChatColor.GOLD + "[" + gate.getLocation().getWorld().getName() + "]" + ChatColor.GREEN + " at " + ChatColor.GOLD + "[" + gate.getLocation().getBlockX() + "," + gate.getLocation().getBlockY() + "," + gate.getLocation().getBlockZ() + "]";
          if (gate.getTarget() != null)
          {
            message = message + ChatColor.GREEN + " linked to " + ChatColor.GOLD + "[" + gate.getTargetTag() + "].";
          }
          else
          {
            message = message + ChatColor.GREEN + ".";
          }
View Full Code Here

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

  {
    if (args.length > 2 && !args[1].equalsIgnoreCase("?"))
    {
      if (EpicGates.permissions.hasPermission(sender, "epicgates.admin", true, true))
      {
        EpicGate gate = General.myGates.get(args[1]);
        if (gate != null)
        {
          clearLanding(gate);
          gate.setDirection(args[2]);
          buildLanding(gate, gate.getLocation().getWorld());
          General.saveGates();
          General.loadGates();
          sender.sendMessage("The direction of [" + args[1] + "] has been set to [" + gate.getDirection() + "]");
        }
        else
        {
          sender.sendMessage("The gate [" + args[1] + "] does not exist.");
        }
View Full Code Here

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

  private EpicGate GetGateByLandingForLocation(Location loc)
  {
    for (String gateTag : General.myGateTags)
    {
      EpicGate gate = General.myGates.get(gateTag);
      if (gate != null)
      {
        if (gate.getLocation().getWorld().getName().equalsIgnoreCase(loc.getWorld().getName()))
        {
          if (gate.getTargetTag().length() > 0)
          {
            if (PlayerWithinGateLanding(gate, loc))
            {
              return gate;
            }
View Full Code Here

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

    if (egp != null)
    {
      if (egp.shouldCheck())
      {
        egp.Check();
        EpicGate gate = GetGateForPlayerLocation(event.getTo());
        if (gate != null)
        {
          if (gate.isAllowed(player))
          {
            Warp(event, gate, egp);
            egp.Teleported();
          }
        }
View Full Code Here

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

  private EpicGate GetGateForPlayerLocation(Location loc)
  {
    for (String gateTag : General.myGateTags)
    {
      EpicGate gate = General.myGates.get(gateTag);
      if (gate != null)
      {
        if (gate.getLocation().getWorld().getName().equalsIgnoreCase(loc.getWorld().getName()))
        {
          if (gate.getTargetTag().length() > 0)
          {
            if (PlayerWithinGate(gate, loc))
            {
              return gate;
            }
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.