dont know what goes on, but this code worked on magma but does not on fougerite
it gives
error invoking function on_Command in plugin.
JsException: Exception of type 'Jint.Native.JsException' was thrown.
it gives
error invoking function on_Command in plugin.
JsException: Exception of type 'Jint.Native.JsException' was thrown.
JavaScript:
function On_Command(Player, cmd, args)
{
if(cmd=="b")
{
if(Player.Admin)
{
if(args.Length < 1)
{
Player.Message("Command Usage: /admin message");
}
else
{
var text = argsToText(args);
Server.BroadcastFrom("[Admin]","[color#E5E4E2]" + text);
var day = System.DateTime.Now.ToString("M.dd");
Plugin.Log("Chat Log\\Chat_" + day, Player.Name + "[ADMIN]: "+ text);
}
}
}
}