check your removeNameFromMuteList method.
|
Thats the code I have an whenever any member of my staff uses it, It IP Mutes the person who they try to unmuteCode: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."); } }
Can anyone help me get a working Unmute command?
check your removeNameFromMuteList method.
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."); } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |