}
else if (_command.startsWith("voiced_"))
{
String command = _command.split(" ")[0];
IVoicedCommandHandler ach = VoicedCommandHandler.getInstance().getVoicedCommandHandler(_command.substring(7));
if (ach == null)
{
activeChar.sendMessage("The command " + command.substring(7) + " does not exist!");
_log.info("No handler registered for command '" + _command + "'");
return;
}
}
else if (_command.startsWith("voice "))
{
//only voice commands allowed in bypass
if (_command.length() > 7
&& _command.charAt(6) == '.')
{
final String vc, vparams;
final int endOfCommand = _command.indexOf(" ", 7);
if (endOfCommand > 0)
{
vc = _command.substring(7, endOfCommand).trim();
vparams = _command.substring(endOfCommand).trim();
}
else
{
vc = _command.substring(7).trim();
vparams = null;
}
if (vc.length() > 0)
{
final IVoicedCommandHandler vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(vc);
if (vch != null)
vch.useVoicedCommand(vc, activeChar, vparams);
}
}
}
else if(_command.startsWith("Quest "))
{