OnPlayerCommand changing with Rust update?Solved
Hi There,

So, I've heard rumous that after the December update the `OnPlayerCommand` hook will be broken I don't do much Oxide development, but I've searched the forums and Google, and can't find anything to back this up.

Is anyone able to shine some light on this? Is it a known issue or is someone over-stating a situation? If it is a problem, what is the alternative?

Thanks!
The signature will be changing from:

OnPlayerCommand(ConsoleSystem.Arg)

To:

OnPlayerCommand(BasePlayer player, string command, string[] args)

This is due to changes in the Rust update where ConsoleSystem.Arg is no longer available there.
Ahh great thanks - will do :-)

Thanks for the quick reply.
I checked your code, and as i think you dont need that hook at all (it must work with commands anyways)
Locked automatically