Thread: Commands

Results 1 to 4 of 4
  1. #1 Commands 
    Donator

    Join Date
    Aug 2010
    Posts
    317
    Thanks given
    13
    Thanks received
    26
    Rep Power
    20
    Hello guys,

    My ::item commands requests a name so I put my name there. It works etc.
    But how can I put a 2nd name there? How would I write it?

    Thanks
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    Code:
    if (playerCommand.startsWith("item") && (c.playerName.equalsIgnoreCase("mojo") || c.playerName.equalsIgnoreCase("zezima") || c.playerName.equalsIgnoreCase("mopar") || c.playerName.equalsIgnoreCase("another noob"))) {
    || means or
    None.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Banned

    Join Date
    Jul 2011
    Age
    31
    Posts
    1,735
    Thanks given
    101
    Thanks received
    81
    Rep Power
    0
    Like Said Above but you would need to take 2 brackets of at the end and put at the last part.
    Reply With Quote  
     

  5. #4  
    Donator

    Join Date
    Aug 2010
    Posts
    317
    Thanks given
    13
    Thanks received
    26
    Rep Power
    20
    Quote Originally Posted by totalbs View Post
    Code:
    if (playerCommand.startsWith("item") && (c.playerName.equalsIgnoreCase("mojo") || c.playerName.equalsIgnoreCase("zezima") || c.playerName.equalsIgnoreCase("mopar") || c.playerName.equalsIgnoreCase("another noob"))) {
    || means or
    Thanks bro I always forget the ||
    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. Replies: 2
    Last Post: 06-07-2011, 08:29 PM
  2. Replies: 9
    Last Post: 11-28-2009, 05:39 AM
  3. Replies: 19
    Last Post: 11-23-2008, 05:30 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
  •