Ok. But if you don't have a problem a question or an error, please do not post in the "Help" Section
|
As of now my mute is ipmuting. My mute command is}
if (playerCommand.startsWith("mute") && c.playerRights >= 1) {
try {
String playerToBan = playerCommand.substring(5);
for (int i = 0; i < Config.MAX_PLAYERS; i++) {
if (Server.playerHandler.players[i] != null) {
if (Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
Connection.addIpToMuteList(Server.playerHandler.pl ayers[i].connectedFrom);
c.sendMessage("You have Muted the user: " + Server.playerHandler.players[i].playerName);
Client c2 = (Client) Server.playerHandler.players[i];
c2.sendMessage("You have been muted by: " + c.playerName);
break;
}
}
}
} catch (Exception e) {
c.sendMessage("Player is not online.");
}
}
if (playerCommand.startsWith("ban") && playerCommand.charAt(3) == ' ') {
Ok. But if you don't have a problem a question or an error, please do not post in the "Help" Section
Maybe if you told him the correct mute command instead of being an ass and telling him there is no problem.
Code:if (playerCommand.startsWith("mute") && c.playerRights >= 1) { 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); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } }
His post didn't even include a question or a request. Have you even read the requirements for a post in the help section you would not be calling me an ass.
EDIT: And if he has Donator set to playerRights = 4 this code is pretty bad. Giving the donators the ability to use mute.
Have you heard of a thing called assumption? Yeah, you can assume he needs to to work properly instead of ipmuting. I called you an ass because you couldn't even tell him how he could fix it. If there's a requirement then go post on all of the ones that say bare minimum.
Man I'm not trying to start a war, I'm just saying if you follow some easy steps you could get better help. And maybe he wanted something special on his mute command? Specific players can mute or something how would i know? If he don't know how to find a simple mute command I'm guessing he do not know how to add all these things himself. (No offense i was this bad not too long ago too)
iRize, Thanks for the help appreciate it.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |