Thread: adding command

Results 1 to 3 of 3
  1. #1 adding command 
    Registered Member Legendz's Avatar
    Join Date
    Nov 2012
    Posts
    80
    Thanks given
    15
    Thanks received
    31
    Rep Power
    19
    im attempting to add commands for different zones, which ik is easy and have done before, however i have not come across a source like this.
    all the goddamn commands are like this Screenshot by Lightshot ! wtf lol please help me
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2016
    Posts
    29
    Thanks given
    9
    Thanks received
    1
    Rep Power
    11
    I might be misunderstanding the question but if you want to make a new command, make another "else if" statement and copy what the other commands did. You make a method and put all the code in there such as shown in "bank(player,command)"
    Reply With Quote  
     

  3. #3  
    Registered Member
    bracket's Avatar
    Join Date
    Aug 2009
    Posts
    5,278
    Thanks given
    1,059
    Thanks received
    1,465
    Rep Power
    5000
    Could just try something like this.

    Code:
    } else if (command.equals("test")) {
    If (zone1) {
    // do stuff here if in zone 1
    } else if (zone2) {
    // do stuff if in 2nd zone
    }
    }
    No conventions cause of my phone sorry.
    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. [RuneFusion]: Adding Commands
    By OG KingFox in forum Tutorials
    Replies: 5
    Last Post: 08-14-2008, 03:33 PM
  2. -Tut- Cleaned V4- Adding Commands and Shops -Tut
    By Jonross in forum Tutorials
    Replies: 11
    Last Post: 07-07-2008, 12:47 AM
  3. Adding Commands to JMenu
    By Harvey in forum Tutorials
    Replies: 3
    Last Post: 03-27-2008, 09:22 PM
  4. Economy Booter(Added Commands Fixed Up bit of code)
    By AlexMason in forum Tutorials
    Replies: 9
    Last Post: 03-13-2008, 06:53 PM
  5. Adding commands to scratch sources
    By Zahhak in forum Tutorials
    Replies: 6
    Last Post: 02-25-2008, 10:37 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •