this is for 317!!!!!!
else if (command.startsWith("mute") && playerRights >= 1) {
try {
String otherPName = command.substring(5);
int otherPIndex = PlayerHandler.getPlayerID(otherPName);
if (otherPIndex != -1) {
client p = (client) server.playerHandler.players[otherPIndex];
p.mutedate = lastlogintime;
p.muted = 1;
sendMessage("You have muted "+p.playerName+"!");
} else {
sendMessage("The name doesnt exist.");
}
} catch (Exception e) {
sendMessage("Try entering a name you want to mute..");
}
} else if (command.startsWith("unmute") && playerRights >= 1) {
try {
String otherPName = command.substring(7);
int otherPIndex = PlayerHandler.getPlayerID(otherPName);
if (otherPIndex != -1) {
client p = (client) server.playerHandler.players[otherPIndex];
p.mutedate = 0;
p.muted = 0;
sendMessage("You have unmuted "+p.playerName+"!");
} else {
sendMessage("The name doesnt exist.");
}
} catch (Exception e) {
sendMessage("Try entering a name you want to mute..");
}
}