I want to make a temporary ban players use the chat command during their participation in the game event.
I recommended the show to the EventManager, but I have not found a solution there
OnRunCommand only for console commands?
Disabling use of chat commands?
Discussion in 'Rust Development' started by SwipoStyle, Nov 13, 2015.
-
OnRunCommand should also be called for chat.say, which is called to write in chat. So you should propably be able to test if the command is "chat.say" and the text begins with "/"
-
Wulf Community Admin
I don't think this is currently possible, as Oxide's rustcore handles them before any plugins get a chance to change it.
-
Maybe add a hook then? OnRunChatCommand
-
Wulf Community Admin
That'd be the same command as OnRunCommand, which rustcore would still handle before plugins.
