else
{
command = _command;
}
IAdminCommandHandler ach = AdminCommandHandler.getInstance().getAdminCommandHandler(command);
if(ach == null)
{
if(activeChar.isGM())
{
activeChar.sendMessage("The command " + command + " does not exists!");
}
_log.warning("No handler registered for admin command '" + command + "'");
return;
}
if(!AdminCommandAccessRights.getInstance().hasAccess(command, activeChar.getAccessLevel()))
{
activeChar.sendMessage("You don't have the access right to use this command!");
if(Config.DEBUG)
{
_log.warning("Character " + activeChar.getName() + " tried to use admin command " + command + ", but doesn't have access to it!");
}
return;
}
if(Config.GMAUDIT)
{
GMAudit.auditGMAction(activeChar.getName()+" ["+activeChar.getObjectId()+"]", command, (activeChar.getTarget() != null?activeChar.getTarget().getName():"no-target"),_command.replace(command, ""));
}
ach.useAdminCommand(_command, activeChar);
}
else if(_command.equals("come_here") && activeChar.isGM())
{
comeHere(activeChar);
}