Package com.forgeessentials.util.selections

Examples of com.forgeessentials.util.selections.WarpPoint


        }
        else
        {
          EntityPlayerMP player = (EntityPlayerMP) sender;
      PlayerInfo playerInfo = PlayerInfo.getPlayerInfo(player.getPersistentID());
      playerInfo.setLastTeleportOrigin(new WarpPoint(player));
      CommandBack.justDied.remove(player.getPersistentID());
          TeleportCenter.teleport(new WarpPoint(sender.getEntityWorld().provider.dimensionId, mo.blockX, mo.blockY, mo.blockZ, sender.rotationPitch, sender.rotationYaw), player);
        }
    }
View Full Code Here


    public AFKdata(EntityPlayerMP player)
    {
        this.player = player;
        waittime = CommandAFK.warmup;
        lastPos = new WarpPoint(player);
        needstowait = true;
        startTime = System.currentTimeMillis();
    }
View Full Code Here

        {
            CommandsEventHandler.afkListToRemove.add(this);
            return;
        }

        currentPos = new WarpPoint(player);
        if (!lastPos.equals(currentPos))
        {
            CommandAFK.instance.abort(this);
        }
View Full Code Here

  public TeleportData(WarpPoint point, EntityPlayerMP player)
  {
    this.point = point;
    this.player = player;
    startTime = System.currentTimeMillis();
    lastPos = new WarpPoint(player);
  }
View Full Code Here

    lastPos = new WarpPoint(player);
  }

  public boolean checkTeleport()
  {
    currentPos = new WarpPoint(player);
    if (!lastPos.equals(currentPos))
    {
      OutputHandler.chatWarning(player, "Teleport cancelled.");
      return true;
    }
View Full Code Here

  }

  public void teleport()
  {
    PlayerInfo pi = PlayerInfo.getPlayerInfo(player.getPersistentID());
    pi.setLastTeleportOrigin(new WarpPoint(player));
    pi.setLastTeleportTime(System.currentTimeMillis());

    if (player.dimension != point.getDimension())
    {
      FMLCommonHandler.instance().getMinecraftServerInstance().getConfigurationManager()
View Full Code Here

                    if (data.receiver.getCommandSenderName().equalsIgnoreCase(sender.getCommandSenderName()))
                    {
                        OutputHandler.chatNotification(data.sender, "Teleport request accepted.");
                        OutputHandler.chatConfirmation(data.receiver, "Teleport request accepted by other party. Teleporting..");
                        TeleportModule.tpaListToRemove.add(data);
                        TeleportCenter.teleport(new WarpPoint(data.sender), data.receiver);
                        return;
                    }
                }
            }
            return;
View Full Code Here

  {
    if (!(e.player instanceof EntityPlayerMP))
      return;
    EntityPlayerMP player = (EntityPlayerMP) e.player;

    WarpPoint before = befores.get(player.getPersistentID());
    WarpPoint current = new WarpPoint(player);

    // obviously.. if there IS no before.. don't worry about it.
    if (before == null)
    {
      befores.put(player.getPersistentID(), current);
      return;
    }

    // no respawn stuff or respawn stuff
    if (player.isDead || player.worldObj == null || before.getDimension() != current.getDimension())
    {
      befores.remove(player.getPersistentID());
      return;
    }
View Full Code Here

            data.money = APIRegistry.wallet.getWallet(player.getPersistentID());
        }
           
        if (sendPosition)
        {
            data.position = new WarpPoint(player);
        }
       
        data.ping = player.ping;
        data.gameMode = player.theItemInWorldManager.getGameType().getName();
View Full Code Here

        {
            point = WorldPoint.fromString(spawnProperty);
        }
        if (point == null)
            return null;
        return new WarpPoint(point, player.cameraYaw, player.cameraPitch);
    }
View Full Code Here

TOP

Related Classes of com.forgeessentials.util.selections.WarpPoint

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.