DiscordControl

About

This is an alternative to the ServerControl mod.
Instead of controlling your server via the site you can now do it directly in your Discord.

Getting Started

1. Invite the Bot to your Discord server.
2. Install the Mod on your server and start it.
3. Run /init and fill out serverIP, port (8877) and password from the config file.
4. Run commands by typing / and select CookieControl to see all available commands.

Available Commands

| addadminlist
| addglobalkey
| addwhitelist
| adminlist
| ban
| banlist
| bansteamid
| damage
| give
| heal
| init
| kick
| position
| rcon
| removeadminlist
| removeglobalkey
| removeobjects
| removewhitelist
| say
| saychat
| scanobject
| showglobalkeys
| showplayers
| spawn
| startevent
| stopevent
| teleport
| unban
| whitelist

Webhook Setup

1. Create a new channel where you want all webhook related messages to go.
2. Right click and select Edit Channel, click Integration, click Create Webhook.
3. Give it an avatar, name (optional), click copy and paste the URL in the config after DiscordWebhookLink =
4. Remove any WebhookEvents you don't want from the config file.

Available Webhooks

| ServerStart | ServerStop | ServerSave | EventStart | EventStop | PlayerJoin | PlayerLeave | PlayerShout | PlayerPing | PlayerDeath | NewDayNumber
Changelog
1.1.1 • Internal restructure.
1.1.0 • Internal restructure.
1.0.9 • /saychat will now by default output a webhook in the defined PlayerShout channel.
      • Added configuration setting to disable /saychat outputting a webhook for those that liked it that way.
1.0.8 • Added a new configuration setting that allows you to set the fake player name.
      • PlayerJoin and PlayerShout are now separated which means you can leave one or the other out.
      • ShowField is now set to true by default and will now properly show SteamID on PlayerJoin and PlayerLeave. 
1.0.7 • Overhauled all default event texts.
      • You can now have up to 10 webhook sets.
      • All sets offers basic and advanced customization.
1.0.6 • Everything now works as expected including two way chat.
        If using ServerDevCommands then you need to disable the fake player for it so it doesn't conflict with DiscordControls own.
1.0.5 • Updated for the new Valheim Patch.
1.0.4 • Updated for the new Valheim Patch.
1.0.3 • Updated ReadMe to link directly to the mods own page on my website.
1.0.2 • Added Webhook features such as

        | ServerStart
        | ServerStop
        | ServerSave 
        | EventStart 
        | EventStop 
        | PlayerJoin 
        | PlayerLeave
        | PlayerShout
        | PlayerPing
        | PlayerDeath
        | NewDayNumber       
        
        Delete your config and let it regenerate, stop your server, add your webhook, start your server and then re-register it.
1.0.1 • Changed config name from DiscordControl.cfg to CookieMilk.DiscordControl.cfg
        Please re-run /init to re-register your server.
1.0.0 • Release.
Requirements:
  • BepInEx 5.4.2202 or later.
  • Valheim 0.221.4.4 or later.
Installation:
  • Download the latest version from Thunderstore.
  • Extract the downloaded zip file.
  • Copy the contents to your serversBepInEx/plugins folder.
  • Start your server to generate the config and follow the Get Started steps.