Examples of teleportTo()


Examples of org.bukkit.entity.Player.teleportTo()

            Player player = Misc.playerMatch(who);

            if ((player == null) || (destination == null)) {
                return false;
            } else {
                player.teleportTo(destination.getLocation());
                return true;
            }
        }
    }
View Full Code Here

Examples of org.bukkit.entity.Player.teleportTo()

  if(Misc.is(base, "/spawn")) {
      if (!General.Permissions.Security.permission(player, "general.spawn")) {
      return;
      }

      player.teleportTo(spawn(player));
  }

  if((!event.isCancelled()) && Misc.is(base, "/motd")) {
      String[] motd = readMotd();
View Full Code Here

Examples of org.bukkit.entity.Player.teleportTo()

        Messaging.send("&cWow look at that! You teleported yourself to yourself!");
        return;
    }

    log.info(player.getName() + " teleported " + who.getName() + " to their self.");
    who.teleportTo(player.getLocation());
      } else {
    Messaging.send("&cCan't find user " + split[1] + ".");
      }
  }
View Full Code Here

Examples of org.bukkit.entity.Vehicle.teleportTo()

          {
            if(ezp.getCurrentLocation() == null){ezp.setCurrentLocation(event.getFrom());}
            if(!VehicleWithinZoneLogic((Player)passenger, ezp, playerHeight, playerPoint))
            {
              ezp.setIsTeleporting(true);
              vehicle.teleportTo(ezp.getCurrentLocation());
              vehicle.setVelocity(zero);
              ezp.setIsTeleporting(false);
              //event.setTo(ezp.getCurrentLocation());
              //event.setCancelled(true);
            }
View Full Code Here

Examples of org.bukkit.entity.Vehicle.teleportTo()

          {
            if(ezp.getCurrentLocation() == null){ezp.setCurrentLocation(event.getFrom());}
            if(!VehicleWithinZoneLogic((Player)passenger, ezp, playerHeight, playerPoint))
            {
              ezp.setIsTeleporting(true);
              vehicle.teleportTo(ezp.getCurrentLocation());
              vehicle.setVelocity(zero);
              ezp.setIsTeleporting(false);
              //event.setTo(ezp.getCurrentLocation());
              //event.setCancelled(true);
            }
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.