Plugin developement Run console command througt Plugin
I've already read this one and this is not helping me: https://umod.org/community/rust/18551-run-a-console-command-through-plugin

I'm trying to do a plugin that reduce the upkeep time each time the server start, because I need to enter the command by the console everytime I restart it, I have something like that for the moment, can someone help me ?

using System;

namespace Oxide.Plugins
{
[Info("UpKeepHalf", "Dolotboy", 0.1)]
public class UpKeepHalf : RustPlugin
{

void Loaded()
{
PrintToConsole("UpKeep Half cost plugin has been loaded")
[RunConsoleCommand("decay.upkeep_period_minutes 2880")]

}
}
}
RunConsoleCommand does not exist, especially not as an attribute like you have above.

rust.RunServerCommand would be what you are looking for, though that method will be removed down the road. You can see better examples in plugins such as Auto Commands.

You could also just use the server.cfg file as part of Rust instead of a plugin, or the existing Auto Commands plugin metnieoned above.
5e13a8d5b2bc5.jpg Wulf
RunConsoleCommand does not exist, especially not as an attribute like you have above.

rust.RunServerCommand would be what you are looking for, though that method will be removed down the road. You can see better examples in plugins such as Auto Commands.

You could also just use the server.cfg file as part of Rust instead of a plugin, or the existing Auto Commands plugin metnieoned above.

Thx, i'll look for those technic. I really appreciate your help :)
But I don't understand what I could do with the server.cfg, can you explain ?

        private void OnServerInitialized()
        {
            rust.RunServerCommand("say Hello World.");
        }
Create a server.cfg file under server/your identity/cfg and add one command per line.
5e13a8d5b2bc5.jpg Wulf
Create a server.cfg file under server/your identity/cfg and add one command per line.
There is already a server.cfg for the map size, seed and etc, can I simply add lines to this files
Dolotboy
There is already a server.cfg for the map size, seed and etc, can I simply add lines to this files

Yes, it is one command per line. Use server.cfg, not serverauto.cfg.

command1
command2
command3