Thread: how to add ::tele xxxx yyyy command?

Results 1 to 6 of 6
  1. #1 how to add ::tele xxxx yyyy command? 
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Hey I need to know how to add the command ::tele xxxx yyyy the x,y stand for the coords. example this would teleport you to lumbridge
    ::tele 3222 3218
    Reply With Quote  
     

  2. #2  
    ┌∩┐(◣_◢)┌∩┐

    Join Date
    Mar 2011
    Posts
    201
    Thanks given
    64
    Thanks received
    53
    Rep Power
    59
    if (playerCommand.startsWith("tele")) {
    String[] arg = playerCommand.split(" ");
    if (arg.length > 3)
    c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),Integer.parseInt(arg[3]));
    else if (arg.length == 3)
    c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),c.heightLevel);
    }
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    I have this code entered in commands.java
    Code:
    }
    			
    			if (playerCommand.startsWith("tele")) {
    				String[] arg = playerCommand.split(" ");
    				if (arg.length > 3)
    					c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),Integer.parseInt(arg[3]));
    				else if (arg.length == 3)
    					c.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),c.heightLevel);
    			}
    But I've tried ::tele 3222 3218 and other coords, but it wont work.
    help?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    bump, need response
    Reply With Quote  
     

  5. #5  
    #Winning

    Join Date
    Apr 2011
    Age
    28
    Posts
    2,245
    Thanks given
    367
    Thanks received
    388
    Rep Power
    1187
    Well Make sure its in the right player rights section in commands.java for your player rights.


    Vouches
    Spoiler for Vouches:

    Quote Originally Posted by Exile rsps View Post
    Vouch thanks for that pic
    Quote Originally Posted by bwuk _im_pb View Post
    i vouch for charlie hes legit
    Quote Originally Posted by Pastaway
    Vouch for 'Charlie. Added a tut to my server I couldn't add and payed him after =]
    Quote Originally Posted by mongolias
    Vouch for 'Charlie. Sold me a banner, the trade went quick and efficiently.
    Quote Originally Posted by Lane
    Vouch for charlie, he is #1
    Quote Originally Posted by Raw Envy View Post
    Vouch for Charlie.
    Quote Originally Posted by -Null Code-
    Vouch Legit bought rs membership
    Quote Originally Posted by tucybro
    Traded with Charlie, went smoothly I went first and he paid promptly without and issues, great trader!



    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jan 2012
    Posts
    387
    Thanks given
    28
    Thanks received
    24
    Rep Power
    0
    Quote Originally Posted by 'Charlie View Post
    Well Make sure its in the right player rights section in commands.java for your player rights.
    oh wow, fixed, thanks.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Dementhium Add New ::Tele Command
    By strongbow94 in forum Help
    Replies: 11
    Last Post: 11-23-2011, 08:45 PM
  2. how to add custom tele to a 317
    By auee in forum Help
    Replies: 0
    Last Post: 03-29-2011, 10:09 PM
  3. Replies: 11
    Last Post: 03-21-2009, 05:16 PM
  4. ::tele xxxx yyyy command
    By OwnageIsle in forum Requests
    Replies: 1
    Last Post: 10-31-2008, 02:59 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •