Hi!
I'm writing a plugin, which derives from CovalencePlugin. I'm trying to add a command, which could be called from the chat/console:
Everything seems to be ok, but calling the command from the game (Hurtworld) causes an error:Code:[Command("MyCommand")] void commandHandler(IPlayer player, string command, string[] args) {...}
Could anyone help me?Code:Failed to call hook 'commandHandler' on plugin 'MyPlugin v0.1.0' (InvalidOperationException: Operation is not valid due to the current state of the object)
Command doesn't work - failed to call hook
Discussion in 'Hurtworld Development' started by gogolon, Jun 27, 2018.