Thread: Mute isn't working

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Mute isn't working 
    Registered Member Comets's Avatar
    Join Date
    Jan 2011
    Posts
    287
    Thanks given
    67
    Thanks received
    30
    Rep Power
    0
    Fixed. Thanks theowner123, and Say wut?.
    Reply With Quote  
     

  2. #2  
    Registered Member Comets's Avatar
    Join Date
    Jan 2011
    Posts
    287
    Thanks given
    67
    Thanks received
    30
    Rep Power
    0
    bump
    Reply With Quote  
     

  3. #3  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    Check the "ismuted" method is looking @ the right location
    Reply With Quote  
     

  4. #4  
    Registered Member Comets's Avatar
    Join Date
    Jan 2011
    Posts
    287
    Thanks given
    67
    Thanks received
    30
    Rep Power
    0
    I forgot, the method was commented out. I was too busy to fix this error, so i just added // in front of it. Help with the error pl0x. =D

    [spoil]
    src\server\Connection.java:312: unreachable statement
    return true;
    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    [/spoil]
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by The Night Life View Post
    I forgot, the method was commented out. I was too busy to fix this error, so i just added // in front of it. Help with the error pl0x. =D

    [spoil]
    src\server\Connection.java:312: unreachable statement
    return true;
    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    [/spoil]
    make it

    return;
    im sending all the mute files though, just incase:

    Chat.java (packets)

    if (!Connection.isMuted(c))
    c.setChatTextUpdateRequired(true);
    }
    connection.java

    intialize:
    muteUsers();
    public static void unMuteUser(String name) {
    mutedNames.remove(name);
    deleteFromFile("./Data/bans/UsersMuted.txt", name);
    }
    public static void muteUsers() {
    try {
    BufferedReader in = new BufferedReader(new FileReader("./Data/bans/UsersMuted.txt"));
    String data = null;
    try {
    while ((data = in.readLine()) != null) {
    mutedNames.add(data);
    }
    } finally {
    in.close();
    }
    } catch (IOException e) {
    e.printStackTrace();
    }
    }
    Create a .txt UsersMuted > DATA/BANS/

    > DATA/BANS/UsersMuted.txt +
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2010
    Posts
    536
    Thanks given
    61
    Thanks received
    25
    Rep Power
    4
    You just got to delete that return true;
    because it already returns to the mute.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by Say Wut? View Post
    You just got to delete that return true;
    because it already returns to the mute.
    nice copy of my post
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Dec 2010
    Posts
    536
    Thanks given
    61
    Thanks received
    25
    Rep Power
    4
    Quote Originally Posted by theowner123 View Post
    nice copy of my post
    Better way to make it short <.<
    He would probs c&p all the code
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by Say Wut? View Post
    Better way to make it short <.<
    He would probs c&p all the code
    Why he have eyes to read..
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Aug 2010
    Age
    27
    Posts
    676
    Thanks given
    80
    Thanks received
    53
    Rep Power
    174
    Stop making big deals out of small things. Who knows if he copied your code he obviously understands what it means.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. [PI] Need a working ::mute command
    By DynastyRSPS in forum Requests
    Replies: 10
    Last Post: 03-25-2011, 01:37 AM
  2. [PI]Mute isn't not working
    By Harambe_ in forum Help
    Replies: 4
    Last Post: 08-22-2010, 11:24 AM
  3. Mute/IP Mute is not working... WILL REP+ + +
    By arr0wtohell in forum Help
    Replies: 10
    Last Post: 03-28-2010, 06:59 PM
  4. 100% Working mute
    By `Leet. in forum Tutorials
    Replies: 5
    Last Post: 12-24-2008, 04:38 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
  •