Is there anyway to cancel OnRunCommand i've tried:
I've built my own command system in python so it does not use oxide to register commands but when i typeCode:def OnRunCommand(self, arg): data = arg.GetString(0, 'text') if data.startswith('/'): self.OnPlayerChat(arg) return False
/help i get the following
http://gyazo.com/c226acb03872da9e6e1c1ac302f5a0e1
Is there anyway to stop it saying Unknown command /help
Cancel OnRunCommand
Discussion in 'Rust Development' started by Spoon, Mar 2, 2015.
-
Wulf Community Admin
Is there a reason why you aren't using Oxide to register commands? That seems a bit pointless.
-
i use my own admin system that uses your forum group from my website as your power(admin) level to assign commands. so i do not use rusts owner moderator user as admin ranks either.
-
Wulf Community Admin
-
This is just the command system i've used on every game i've hosted a server for it ties all the commands to my website so admins can view all there commands from our echelon also ingame when you type /help it list all the command you have access to then if you want to know how to use a command you can type /help command eg. /help tempban will output <name> <duration> <reason> - Temporarily ban a player.
-
Wulf Community Admin
To answer your original question though, it's an unknown command as you never registered the command with Oxide. You'd likely have to modify Oxide's core to stop that message. You should be able to cancel chat commands though using the OnPlayerChat function. -
Fixed it i did.
Code:def OnRunCommand(self, arg): data = arg.GetString(0, 'text') if data.startswith('/'): arg.cmd.namefull = ''
-
Wulf Community Admin
-
all my plugins register there commands through this plugin
Last edited by a moderator: Mar 2, 2015