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

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

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

revision 1587 by torben, Sun Aug 7 20:25:13 2011 UTC revision 1588 by torben, Sun Aug 14 11:05:33 2011 UTC
# Line 1  Line 1 
1  package dk.thoerup.bukkit.hoeruputils;  package dk.thoerup.bukkit.hoeruputils;
2    
3    import org.bukkit.ChatColor;
4  import org.bukkit.Location;  import org.bukkit.Location;
5  import org.bukkit.World;  import org.bukkit.World;
6  import org.bukkit.command.Command;  import org.bukkit.command.Command;
# Line 45  public class TeleportCommand implements Line 46  public class TeleportCommand implements
46                          p.sendMessage("you can't tp a player to himself");                          p.sendMessage("you can't tp a player to himself");
47                          return true;                          return true;
48                  }                  }
49                    dest.sendMessage( ChatColor.GRAY +  source.getName() + " was teleported to you.");
50                    source.sendMessage( ChatColor.GRAY + "You was teleported to " + dest.getName() );
51    
52                  source.teleport( dest );                  source.teleport( dest );
53                                    
54                  return true;                  return true;

Legend:
Removed from v.1587  
changed lines
  Added in v.1588

  ViewVC Help
Powered by ViewVC 1.1.20