We've moved! Join us as we continue development on our new site at umod.org!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. 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:

    void commandHandler(IPlayer player, string command, string[] args)
    Everything seems to be ok, but calling the command from the game (Hurtworld) causes an error:
    Failed to call hook 'commandHandler' on plugin 'MyPlugin v0.1.0' (InvalidOperationException: Operation is not valid due to the current state of the object)
    Could anyone help me?
  2. Wulf

    Wulf Community Admin

    Could you provide the full error and code please?