Thread: Yell

Results 1 to 5 of 5
  1. #1 Yell 
    Registered Member Rampage PK's Avatar
    Join Date
    Sep 2013
    Posts
    98
    Thanks given
    45
    Thanks received
    2
    Rep Power
    1
    I added this.

    if (playerCommand.startsWith("yell")) {
    String m = playerCommand.substring(4).toLowerCase();
    if (Connection.isMuted(c)) {
    c.sendMessage("You cannot yell you are muted.");
    } else if (c.isDonator != 1) {
    c.sendMessage("You do not have access to the yell channel.");
    } else {
    c.getPA().sendYell(Misc.optimizeText(m));
    }
    }

    I will yell and it will work out fine.
    If someone else does yell it will say my name with the text they typed.
    Reply With Quote  
     

  2. #2  
    Registered Member Lewisti's Avatar
    Join Date
    Mar 2012
    Age
    25
    Posts
    445
    Thanks given
    128
    Thanks received
    73
    Rep Power
    63
    What revision? And probably seem like you didn't close the brackets.
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member Rampage PK's Avatar
    Join Date
    Sep 2013
    Posts
    98
    Thanks given
    45
    Thanks received
    2
    Rep Power
    1
    I did add correct brackets, it just isn't working for some reason.
    I think it has something to do with this bit of code. String m = playerCommand.substring(4).toLowerCase();
    Or, maybe this. c.getPA().sendYell(Misc.optimizeText(m));
    Reply With Quote  
     

  4. #4  
    Registered Member Rampage PK's Avatar
    Join Date
    Sep 2013
    Posts
    98
    Thanks given
    45
    Thanks received
    2
    Rep Power
    1
    This is the error, Screenshot by Lightshot
    I yell something, and on the players side of view it will say they yell it.
    Example, Owner: Hello. Player: Hello.
    Reply With Quote  
     

  5. #5  
    Registered Member Rampage PK's Avatar
    Join Date
    Sep 2013
    Posts
    98
    Thanks given
    45
    Thanks received
    2
    Rep Power
    1
    It could also be, Client client = (Client) PlayerHandler.players[i]; not to sure though.
    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: 18
    Last Post: 03-19-2008, 12:43 PM
  2. Guy yelling at cat
    By Numbers in forum Videos
    Replies: 4
    Last Post: 03-16-2008, 07:22 PM
  3. Making Yell command log to a seperate file
    By DegeneralizationX in forum Tutorials
    Replies: 8
    Last Post: 10-04-2007, 05:20 AM
  4. Censoring yell
    By Bushido in forum Tutorials
    Replies: 6
    Last Post: 09-17-2007, 01:49 PM
  5. How to add a good logging system [CHAT,CMDS,YELL]
    By Shawn101 in forum Tutorials
    Replies: 8
    Last Post: 08-16-2007, 02:10 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •