Exemple #1
0
 public override void OnPluginLoaded()
 {
     Server.SendAnnounce("Jurassic plugin has been loaded!!");
     if (JSScript.Load("autoload"))
     {
         JSScript.Kill("autoload");
     }
 }
Exemple #2
0
        public override bool OnTextCommand(IClient client, string cmd, string args)
        {
            if (client.Admin >= AdminLevel.Admin)
            {
                switch (cmd)
                {
                case "loadscript":
                    JSScript.Load(args);
                    break;

                case "killscript":
                    JSScript.Kill(args);
                    break;
                }
            }
            return(true);
        }