All pastes #12328 Raw Edit

Stuff

public text v1 · immutable
#12328 ·published 2005-05-21 12:39 UTC
rendered paste body
Index: java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminTeleport.java
===================================================================
--- C:/Documents and Settings/Robert-Jan/Bureaublad/Eclipse/workspace/Server/L2_GameServer/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminTeleport.java	(revision 71)
+++ C:/Documents and Settings/Robert-Jan/Bureaublad/Eclipse/workspace/Server/L2_GameServer/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminTeleport.java	(working copy)
@@ -76,6 +76,22 @@
 		{
 			AdminHelpPage.showHelpPage(activeChar, "tele/other.html");
 		}
+		else if (command.startsWith("admin_teleport_character_to "))
+        {
+			String[] data = command.split(" ");
+            if(data.length==5)
+            {
+				String playerName=data[1];
+                int x=Integer.parseInt(data[2]);
+                int y=Integer.parseInt(data[3]);
+                int z=Integer.parseInt(data[4]);
+                L2PcInstance player = L2World.getInstance().getPlayer(playerName);
+                if(player!=null)
+                {
+					teleportCharacter(player,x,y,z);
+                }
+			}
+		}
 		else if (command.equals("admin_show_teleport"))
 		{
 			showTeleportCharWindow(activeChar);