Thread: [PI] Mute command?

Results 1 to 3 of 3
  1. #1 [PI] Mute command? 
    Ex-Staff

    Koy's Avatar
    Join Date
    Oct 2010
    Posts
    1,871
    Thanks given
    1,299
    Thanks received
    910
    Rep Power
    5000
    Does anyone know how to make the mute command work? I've never seemed to be able to get it to work, even with other bases'.. Thanks in advanced!
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Oct 2011
    Age
    27
    Posts
    68
    Thanks given
    8
    Thanks received
    14
    Rep Power
    0
    Commands.java >

    if (playerCommand.startsWith("mute")) {
    try {
    String playerToBan = playerCommand.substring(5);
    Connection.addNameToMuteList(playerToBan);
    for(int i = 0; i < Config.MAX_PLAYERS; i++) {
    if(Server.playerHandler.players[i] != null) {
    if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
    Client c2 = (Client)Server.playerHandler.players[i];
    c2.sendMessage("You have been muted by: " + c.playerName);
    c2.sendMessage(" " +c2.playerName+ " Got Muted By " + c.playerName+ ".");
    break;
    }
    }
    }
    Your welcome.
    Reply With Quote  
     

  3. #3  
    Ex-Staff

    Koy's Avatar
    Join Date
    Oct 2010
    Posts
    1,871
    Thanks given
    1,299
    Thanks received
    910
    Rep Power
    5000
    I was looking for one that works btw. You ripped that straight from PI and obviously have never tested it.
    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. [PI] MUTE command
    By Harman in forum Help
    Replies: 3
    Last Post: 08-12-2011, 07:34 PM
  2. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  3. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  4. mute command 614
    By Zᴀᴄʜ in forum Requests
    Replies: 0
    Last Post: 12-13-2010, 11:54 PM
  5. mute command
    By Romania Clan in forum Help
    Replies: 0
    Last Post: 05-14-2010, 11:15 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
  •