--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/TeleportCommand.java 2011/09/26 13:04:40 1602 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/TeleportCommand.java 2015/03/09 13:55:54 2432 @@ -1,8 +1,6 @@ package dk.thoerup.bukkit.hoeruputils; import org.bukkit.ChatColor; -import org.bukkit.Location; -import org.bukkit.World; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; @@ -29,13 +27,14 @@ return true; } + @SuppressWarnings("deprecation")//user by name is our only option here Player source = p.getServer().getPlayer( args[0] ); - if (source == null) { p.sendMessage("Could not find source: " + args[0]); return true; } + @SuppressWarnings("deprecation")//user by name is our only option here Player dest = p.getServer().getPlayer( args[1] ); if (dest == null) { p.sendMessage("Could not find destination: " + args[1]);