Code-x
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Code-x

Code-x Private Server
 
HomeHome  PortalPortal  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 U can shout when ur muted

Go down 
AuthorMessage
1xiix1
Donator
Donator



Number of posts : 87
Registration date : 2008-08-20

U can shout when ur muted Empty
PostSubject: U can shout when ur muted   U can shout when ur muted Icon_minitimeFri Aug 22, 2008 3:16 pm

i can know i'm muted,

heres the fix:

Code:
      if (command.startsWith("shout") && (command.length() > 5)) {
         if (!muted) {
            String text = command.substring(5);
            String[] bad = { "chalreq", "duelreq", "tradereq" };
            for (String element : bad) {
               if (text.indexOf(element) >= 0) {
                  return;
               }
            }
            lastMessage[0] = lastMessage[1];
            lastMessage[1] = lastMessage[2];
            lastMessage[2] = Character.toUpperCase(text.charAt(0))
                  + text.substring(1);
            if (lastMessage[0].equals(lastMessage[1])
                  && lastMessage[1].equals(lastMessage[2]))
               sendMessage(playerName + ":  "
                     + Character.toUpperCase(text.charAt(0))
                     + text.substring(1));
            else
               yell(playerName + ":  "
                     + Character.toUpperCase(text.charAt(0))
                     + text.substring(1));
         } else
            sendMessage(playerName + ":  " + command.substring(5));
      }
Back to top Go down
 
U can shout when ur muted
Back to top 
Page 1 of 1
 Similar topics
-
» no more ::shout
» commands for shout box for mods and me
» i got muted an y i got muted
» MUTED
» muted for no reason?

Permissions in this forum:You cannot reply to topics in this forum
Code-x :: Server Chat :: Bugs-
Jump to: