Coding

public class warps {



 public boolean onCommand( CommandSender sender, Command cmd , String commandLabel , String [] args )

{



  Player player = ( Player ) sender ;



  if ( commandLabel .equalsIgnoreCase( "rwarp" )){

  Player player = ( Player ) sender ;



          Location originalLocation = player .getLocation;



          Random random = new Random ;



          Location teleportLocation = null ;



<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          int x = random .nextInt(100) + 1;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          int y = 150;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          int z = random .nextInt(100) + 1;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          boolean isOnLand = false ;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          while ( isOnLand == false ) {

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">                  teleportLocation = new Location ( player .getWorld, x, y , z );

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">                  if ( teleportLocation .getBlock.getType != Material .AIR) {

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">                          isOnLand = true ;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">                  } else y --;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          }

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          player .teleport( new Location ( player .getWorld, teleportLocation .getX, teleportLocation .getY + 1, teleportLocation .getZ));

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          player .sendMessage( ChatColor .DARK_PURPLE + "[LoLCore]You have been magically teleported " + ( int ) teleportLocation .distance( originalLocation ) + " blocks away!" );

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">          return true ;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  }

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  if ( commandLabel .equalsIgnoreCase( "lwarp" )){

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  }

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  if ( commandLabel .equalsIgnoreCase( "pwarp" )){

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  if ( args .length == 0){

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  player.sendMessage( ChatColor .DARK_PURPLE + "[LoLCore]/pwarp {target}" )

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  } else if (args.length == 1){

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  Player targetPlayer = player.getServer.getPlayer(args[0]);

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  Location targetPlayerLocation = targetPlayer.getLocation;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  player.teleport(targetPlayerLocation);

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;min-height:15px;">

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  } else if (args.length == 2){

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  Player targetPlayer = player.getServer.getPlayer(args[0]);

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">      Player targetPlayer1 = player.getServer.getPlayer(args[1]);

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">      Location targetPlayer1Location = targetPlayer1.getLocation;

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">      targetPlayer.teleport(targetPlayer1Location);

<p style="margin-top:0px;margin-bottom:0px;font-size:11px;line-height:normal;font-family:Monaco;">  }