Package org.bukkit.entity

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


      {
        if(ezp.getCurrentLocation() == null){ezp.setCurrentLocation(event.getFrom());}
        if(!PlayerWithinZoneLogic(player, ezp, playerHeight, playerPoint))
        {
          ezp.setIsTeleporting(true);
          player.teleportTo(ezp.getCurrentLocation());
          ezp.setIsTeleporting(false);
          event.setTo(ezp.getCurrentLocation());
          event.setCancelled(true);
        }
        else
View Full Code Here


        if(ezp.getEntityID() != player.getEntityId()){ezp.setEntityID(player.getEntityId());}
        if(ezp.getCurrentLocation() == null){ezp.setCurrentLocation(event.getFrom());}
        if(!PlayerWithinZoneLogic(player, ezp, playerHeight, playerPoint))
        {
          ezp.setIsTeleporting(true);
          player.teleportTo(ezp.getCurrentLocation());
          ezp.setIsTeleporting(false);
          event.setTo(ezp.getCurrentLocation());
          event.setCancelled(true);
        }
        {
View Full Code Here

                  {
                    if (ezp.getLastWarned().before(new Date())){
                      player.sendMessage(NO_PERM_ENTER + z.getName());
                      ezp.Warn();
                      }
                    player.teleportTo(ezp.getCurrentLocation());
                    event.setTo(ezp.getCurrentLocation());
                    event.setCancelled(true);
                  }
                }
               }
View Full Code Here

      {
        if (ezp.getLastWarned().before(new Date())){
        player.sendMessage(NO_PERM_BORDER);
        ezp.Warn();
        }
      player.teleportTo(ezp.getCurrentLocation());
      event.setTo(ezp.getCurrentLocation());
      event.setCancelled(true);
      }
    }
       
View Full Code Here

    if ((player == null) || (destination == null)) {
        continue;
    } else {
        if (!player.equals(destination)) {
      player.teleportTo(destination.getLocation());
        }
    }
            }

            return true;
View Full Code Here

            Player player = Misc.playerMatch(who);

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

  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

        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

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.