This package has been marked as deprecated, and it's suggested another
alternative is used.
Last updated | a year ago |
Total downloads | 2257 |
Total rating | 9 |
Categories | Server-side |
Dependency string | KGvalheim-Discord_Server_Control_Bot-7.0.0 |
Dependants | 10 other packages depend on this package |
README
Bot that allows you to control your server from discord
Requirements:
- Valheim Dedicated Server
- Opened port (5986 by default)
Possible Commands:
Game-related:
- /addglobalkey (key) - Adds global key to server
- /removeglobalkey (key) - Removes global key from server
- /globalkeys - Lists all global keys
- /banlist - Lists all banned users
- /ban (player name) - Bans player
- /bansteamid (steamid) - Bans player by steamid
- /unban (steam id) - Unbans player
- /kick (player name) - Kicks player
- /cheatercheck (steam id) - Checks if player was tagged by Azu Anticheat
- /tp (player name) (x) (y) (z) - Teleports player to position
- /whitelist - Lists all whitelisted players
- /addwhitelist (steam id) - Adds player to whitelist
- /removewhitelist (steam id) - Removes player from whitelist
- /say (message) - Says message as server notification
- /saychat (message) - Says message as chat notification
- /heal (player name) - Heals player
- /kill (player name) - Kills player
- /give (player name) (item id) (amount) (level) - Gives player an item
- /spawn (x) (y) (z) (prefab) (amount) (level) - Spawns prefab in XYZ pos
- /players - Lists all players with additional info (steam id, position, health, etc)
- /pos (player name) - Shows player position
- /scanpieces (prefab) - Scans all pieces of prefab builded on map
- /removepieces (prefab) (creator id) - removes all pieces by prefab and creator id from map
- /adminlist - Shows adminlist
- /addadminlist (steam id) - adds steam id to adminlist
- /removeadminlist (steam id) - removes steam id from adminlist
- /startevent (event name) (x) (y) (z) - starts event by name in particular position
- /stopevent - stops current server event
Discord-related:
- /scsettings setip (server ip) (port [5986 by default]) (password from ServerControl.cfg) - Connects discord to your game server
- /scsettings showdays (channel) - Sets discord voice channel to show days ingame (updates each 5 minutes)
- /scsettings showonline (channel) - Sets discord voice channel to show current online (updates each 5 minutes)
- /scsettings setspeakchannel (channel) - Sets discord text channel as "speak channel". Each message from this channel will be sent into the game
- /scsettings setspeakchannel2 (channel) - Sets discord text channel as "speak channel 2". Each message from this channel will be sent into the game
- /addtag (discord user) (tag) - Sets in-game tag before nickname while using speak channel
How-to install:
- Invite bot to your discord server: https://discord.com/api/oauth2/authorize?client_id=909892035513835521&permissions=8&scope=bot applications.commands
- Put ServerControl.dll (main plugin) ONLY in serverside. Mod doesn't need to be on clients
- Start server
- After start ServerControl.cfg should appear in Server/BepInEx/config/ServerControl.cfg folder
- Open .cfg to see your generated server password:
- In discord use /scsettings setip (serverip) (port) (password) command to connect discord server to valheim server . (im using local server so im using 127.0.0.1 as IP)
- If all was successfull you will get message "Server IP changed". Then you can start using bot commands
Only discord server ADMINS can use bot commands. But if you want to completely hide /slash commands from normal users you can go discord settings => integrations => Server Control Bot and change command visibility
For Questions or Comments, find KG#7777 in the Odin Plus Team Discord: