Rust F1 console - Can multiple commands (eg. permissions) be executed in one line?

I have searched all over for this.  Basically, just want to script executing multiple permissions after Rust server and associated plugins are updated.  For example:

o.group add FRIEND
o.group add ENEMY
o.usergroup add jack FRIEND
o.usergroup add larry ENEMY
o.grant group FRIEND backpacks.size.144
o.grant user LARRY backpacks.size.48

// would like something like:
o.group add FRIEND ; o.group add ENEMY ; o.usergroup add jack FRIEND ; o.usergroup add larry ENEMY
o.grant group FRIEND backpacks.size.144 ; o.grant user LARRY backpacks.size.48

Am I correct in assuming "F1 - console" only allows ONE command per line?

I have tried ";"   "/"   "\"  to simulate end-of-line but no-go.

I appreciate your time.

-Jack

yes only 1 per line.

you can do that on server console ;) but not in the F1 console :(

this:

o.group add FRIEND
o.group add ENEMY
o.usergroup add jack FRIEND
o.usergroup add larry ENEMY
o.grant group FRIEND backpacks.size.144
o.grant user LARRY backpacks.size.48​

 

 

i can do this for you discord me rust_razor

Merged post

you can give this a try name file MultiF1Command.cs add a & inbetween commands

using Network;

namespace Oxide.Plugins
{
    [Info("MultiF1Command", "Razor", "1.0.0")]
    [Description("Run multiple F1 commands at once.")]
    public class MultiF1Command : RustPlugin
    {
        private const string adminPerm = "multif1command.admin";

        private void Init()
        {
            permission.RegisterPermission(adminPerm, this);
        }

        private object OnClientCommand(Connection connection, string command)
        {
            if (connection != null && permission.UserHasPermission(connection.userid.ToString(), adminPerm) && command.Contains("&"))
            {
                BasePlayer player = BasePlayer.FindByID(connection.userid);

                if (player != null)
                {
                    string[] commands = command.Split('&');

                    foreach (string commandNew in commands)
                    {
                        player.SendConsoleCommand(commandNew.Trim());
                        player.SendConsoleCommand($"echo Ran: {commandNew.Trim()}");
                    }
                    return true;
                }
            }

            return null;
        }
    }
}​