Thread: Command that wont work.

Results 1 to 3 of 3
  1. #1 Command that wont work. 
    Registered Member
    Join Date
    Aug 2010
    Posts
    32
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Code:
    if (playerCommand.startsWith("unmute") && c.playerRights == 1 && c.playerName.equalsIgnoreCase("anthony")  || c.playerName.equalsIgnoreCase("charger")) {
    				try {	
    					String playerToBan = playerCommand.substring(7);
    					Connection.removeNameFromMuteList(playerToBan);
    					c.sendMessage(playerToBan + " has been unmuted."); 
    				} catch(Exception e) {
    					c.sendMessage("Player Must Be Offline.");
    				}			
    			}
    Thats the code I have an whenever any member of my staff uses it, It IP Mutes the person who they try to unmute

    Can anyone help me get a working Unmute command?
    Reply With Quote  
     

  2. #2  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    check your removeNameFromMuteList method.
    Reply With Quote  
     

  3. #3  
    The One And Only

    01053's Avatar
    Join Date
    Apr 2011
    Age
    28
    Posts
    2,887
    Thanks given
    417
    Thanks received
    885
    Rep Power
    856
    Try this

    Code:
    if (playerCommand.startsWith("unmute") && c.playerName.equalsIgnoreCase("anthony")  || c.playerName.equalsIgnoreCase("charger")) {
    				try {	
    					String playerToBan = playerCommand.substring(7);
    					Connection.unMuteUser(playerToBan);
    				} catch(Exception e) {
    					c.sendMessage("Player Must Be Offline.");
    
    				}			
    			}


    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. Why this wont work?
    By mige5 in forum Help
    Replies: 0
    Last Post: 11-17-2010, 06:45 PM
  2. [Delta] why wont mute command work
    By himskater in forum Help
    Replies: 9
    Last Post: 08-13-2010, 10:38 PM
  3. emulous gfx command wont work
    By The Turk in forum Help
    Replies: 2
    Last Post: 12-24-2009, 11:52 PM
  4. This wont work if..
    By Luke in forum Forum Related Help
    Replies: 0
    Last Post: 11-13-2009, 02:36 PM
  5. pickup command wont work (czar)
    By Rockhard in forum Help
    Replies: 1
    Last Post: 10-23-2009, 11:42 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
  •