quote:
Originally posted by Lén
there isn't a /explorer in the command window, why?
code:
function OnGetScriptCommands(){
var commands = '<ScriptCommands>';
commands+='<Command>';
commands+='<Name>BendeR</Name>';
commands+='<Description>Multi-fonctions</Description>';
commands+='</Command>';
commands+='</ScriptCommands>';
return commands;
}
The part in bold defines what is shown in the command window, so it needs to be
code:
commands+='<Name>explorer</Name>'
Also, after quickly looking at your code, the lines
code:
var explorer = '/explorer ';
if(Message.substring(0,8)==explorer)
should be
code:
var explorer = '/explorer';
if(Message.substring(0,9)==explorer)
Hope this helps.