1. Hello All,

    I have spent the past 2-3 hours searching the forums and available plugins for code that executes a command.
    No luck.

    Would someone kindly tell me the include and one-liner to run a command.

    I am trying to have the server run "/whitelist reload" every so often.

    I have taken snippets from the announcer plugin. Mainly the timer to have it run over and over.

    Thanks for any help you may provide.
     
  2. You can't really run a chat command from the server. You would need to see if the plugin offers a console command to do the reload.
     
  3. So I think I found the function I need to call

    CodeHatch.Engine.Registration.UserWhitelist.load();

    Would I just put that line in a function and call it?

    Sorry new to C#
     
  4. If that is the function the command calls then yes.