public static void LoadScript(Sender sender, string file)
 {
     if (sender is Player)
     {
         if (sender.isOp())
         {
             if (file.Length > 1 && file != null && file.Trim().Length > 0)
             {
                 try
                 {
                     _manager.DoFile(file);
                     sender.sendMessage("Lua script loaded.");
                     _initialised = true;
                 }
                 catch
                 {
                     sender.sendMessage("Loading lua script failed.");
                     _initialised = false;
                 }
             }
             else
             {
                 sender.sendMessage("Lua script not found");
                 _initialised = false;
             }
         }
         else
         {
             sender.sendMessage("You Cannot Perform That Action.", 255, 238f, 130f, 238f);
         }
     }
 }
 public static void ReloadScript(Sender sender)
 {
     if (sender is Player)
     {
         if (sender.isOp())
         {
             try
             {
                 _manager.DoFile(_filename);
                 sender.sendMessage("Reloaded current lua script.");
                 _initialised = true;
             }
             catch
             {
                 sender.sendMessage("Failed to reload current lua script.");
                 _initialised = false;
             }
         }
     }
     else
     {
         sender.sendMessage("You Cannot Perform That Action.", 255, 238f, 130f, 238f);
     }
 }
        public static void OPLoginOut(Sender sender, string[] commands, bool logout = false)
        {
            if (sender is Player)
            {
                if (logout)
                {
                    if (sender.isOp())
                    {
                        sender.setOp(false);
                        sender.sendMessage("Successfully Logged Out.");
                    }
                    return;
                }

                if (commands.Length > 1 && commands[1] != null && commands[1].Trim().Length > 0)
                {
                    string player_Password = commands[1].Trim().ToLower();

                    if (Player.isInOpList(sender.getName(), Program.server))
                    {
                        if (((Player)sender).getPassword().Trim().ToLower() == player_Password)
                        {
                            sender.setOp(true);
                            sender.sendMessage("Successfully Logged in as OP.");
                        }
                        else
                        {
                            sender.sendMessage("Incorrect OP Password.");
                            return;
                        }
                    }
                    else
                    {
                        sender.sendMessage("You need to be Assiged OP Privledges.");
                        return;
                    }
                    return;
                }
                else
                {
                    goto ERROR;
                }
            ERROR:
                sender.sendMessage("Command Error!");
            }
        }