Create local console command only?Solved

How would one create local console command? I see ConsoleCommand attribute, but it doesn't seem to work. Maybe there is different method arugments are needed for console command specificly? This is a few ways I tried to register it, and none of them work

[ConsoleCommand("runcompression")]
private void RunCompressionMigration(IPlayer player, string command, string[] args)
{
    //
}

[Command("runcompression1")]
private void RunCompressionMigration1(IPlayer player, string command, string[] args)
{
    //
}

Having IPlayer in console command does look weird though

IPlayer is to be used with CovalencePlugin and Command attribute. BasePlayer for ChatCommand and RustPlugin. ConsoleCommand only has ConsoleSystem.Arg (yea just that!) and is for RustPlugin as well.

Qble9YPyseIOkyH.png misticos

IPlayer is to be used with CovalencePlugin and Command attribute. BasePlayer for ChatCommand and RustPlugin. ConsoleCommand only has ConsoleSystem.Arg (yea just that!) and is for RustPlugin as well.

Thanks! This should be probably mentioned in the Commands part of the official docs

Locked automatically