Thread: Command help

Results 1 to 6 of 6
  1. #1 Command help 
    Illuminati
    Guest
    Im trying to make a public announce command.

    Basically ::yell but instead the command needs to be ::ann and it needs to say "ann" next to their name

    and there needs to be a timer..say..one :ann every 3 seconds or so?


    can anyone help me with this?

    (No, my server does NOT currently have :yell, therefore i cant just change it)
    Reply With Quote  
     

  2. #2  
    sex inFamous's Avatar
    Join Date
    Sep 2008
    Posts
    0
    Thanks given
    6
    Thanks received
    4
    Rep Power
    0
    Code:
    }
    			if (cmd.startsWith("server")) {
    				c.Yell("[Server]: "+cmd.substring(7)+"");
    ?
    i'm back...
    Reply With Quote  
     

  3. #3  
    Illuminati
    Guest
    uhh idk if thats right..dont look right =O..idk


    edit: fuck it, just copy and paste the yell command here lol
    Reply With Quote  
     

  4. #4  
    sex inFamous's Avatar
    Join Date
    Sep 2008
    Posts
    0
    Thanks given
    6
    Thanks received
    4
    Rep Power
    0
    Try this

    Code:
    if (command.startsWith("message") && command.length() > 8 && playerRights > 2) {
    			String text = command.substring(8);
    				yell("[SERVER]:  " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    }
    i'm back...
    Reply With Quote  
     

  5. #5  
    Illuminati
    Guest
    ty will try
    Reply With Quote  
     

  6. #6  
    sex inFamous's Avatar
    Join Date
    Sep 2008
    Posts
    0
    Thanks given
    6
    Thanks received
    4
    Rep Power
    0
    Quote Originally Posted by Illuminati View Post
    ty will try
    Np mate it should work..
    i'm back...
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •