Thread: Delta Yell command

Results 1 to 4 of 4
  1. #1 Delta Yell command 
    Registered Member
    Join Date
    Oct 2009
    Posts
    127
    Thanks given
    9
    Thanks received
    4
    Rep Power
    20
    yell command for donator+
    Please rep+ =P
    Reply With Quote  
     

  2. #2  
    I <3 Dubstep

    Aborted's Avatar
    Join Date
    Nov 2008
    Age
    30
    Posts
    169
    Thanks given
    19
    Thanks received
    3
    Rep Power
    93
    Code:
    if (command.startsWith("yell") && command.length() > 5 && !muted)
              {
          String text = command.substring(5);
          if((donator==1) && (playerRights<=1)){
          yell("[Donator] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
          }else if(playerRights==1){
          yell("[Mod] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
          }else if(playerRights==2){
          yell("[Admin] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
          }else if(playerRights==3){
          yell("[Owner] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
          }
          }

    Should work.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Oct 2009
    Posts
    127
    Thanks given
    9
    Thanks received
    4
    Rep Power
    20
    Thanks Dan
    Reply With Quote  
     

  5. #4  
    Registered Member Lord Military's Avatar
    Join Date
    Jan 2010
    Posts
    526
    Thanks given
    56
    Thanks received
    5
    Rep Power
    6
    Code:
    if (command.startsWith("yell") && command.length() > 5 && !muted)
              {
          String text = command.substring(5);
          if((donator==1) && (playerRights<=1)){
          yell("[Donator] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
          }else if(playerRights==1){
          yell("[Mod] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
          }else if(playerRights==2){
          yell("[Admin] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
          }else if(playerRights==3){
          yell("[Owner] "+ playerName + ": "  + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    }else if((donator==0) && (playerRights<=1)){
    sm("You need to donate to yell")
          }
          }
    not tested


    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
  •