C#:
using Network;
using Oxide.Core;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Oxide.Plugins
{
[Info("OnStarted", "setfps", "0.0.1")]
[Description("Заебался прописывать по кд ебучие команды.")]
public class OnStarted : RustPlugin
{
string[] commands =
{
"server.encryption 0",
"server.secure 1",
"o.reload DoFake"
};
void OnServerInitialized(bool initial)
{
foreach (var command in commands)
{
ConsoleSystem.Run(ConsoleSystem.Option.Server, command);
}
Puts("OnServerInitialized works!");
}
}
}