/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SpawnCommand.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SpawnCommand.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1848 by torben, Sat Sep 22 14:58:13 2012 UTC revision 1849 by torben, Sun Sep 23 12:09:50 2012 UTC
# Line 19  public class SpawnCommand implements Com Line 19  public class SpawnCommand implements Com
19    
20                  Player p = (Player) sender;                  Player p = (Player) sender;
21                  Location spawn = p.getLocation().getWorld().getSpawnLocation();                  Location spawn = p.getLocation().getWorld().getSpawnLocation();
22                    int clearY = spawn.getWorld().getHighestBlockYAt( spawn );
23                    spawn.setY( clearY );
24    
25    
26                  p.teleport( spawn );                  p.teleport( spawn );

Legend:
Removed from v.1848  
changed lines
  Added in v.1849

  ViewVC Help
Powered by ViewVC 1.1.20