Package org.bukkit.entity

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


        break;

      case GOTO_WARP:
        Location loc = warpPoints.get(player.getName());
        if (loc != null && loc.getWorld() == player.getWorld())
          player.teleport(loc);
        break;

      case TOGGLE_GODMODE:
        boolean b = !apl.isGodMode();
        apl.setGodMode(b);
View Full Code Here


            // set to 1 block up so we are not sunk in the ground
            blockLocation.setY(blockLocation.getY() + 1);

            plugin.getCache(player).setLastLocation(blockLocation);
            player.teleport(blockLocation);
            return;
          }
    } catch (NotRegisteredException e1) {
      TownyMessaging.sendErrorMsg(player, TownySettings.getLangString("msg_err_not_configured"));
      return;
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.