Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
ValheimRcon
Server plugin that adds support for the RCON protocol to manage your Valheim server. It includes a set of the most essential commands.
| Date uploaded | 2 weeks ago |
| Version | 1.6.2 |
| Download link | Tristan-ValheimRcon-1.6.2.zip |
| Downloads | 620 |
| Dependency string | Tristan-ValheimRcon-1.6.2 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.
Preferred version: 5.4.1901README
ValheimRcon
This plugin adds RCON protocol support to your Valheim server.
- Introduces several commands for interacting with the server remotely
- Supports sending command execution results to Discord
- Provides an extensible RCON command interface that can be used by third-party mods
- Advanced security features:
- IP address filtering with CIDR mask support (whitelist/blacklist)
- Security incident logging to Discord (failed logins, unauthorized access attempts, IP filter rejections)
- Empty password protection (plugin disabled if password is empty)
- Automatic disconnection of unauthorized clients
Usage
- Install the plugin to your Valheim server
- Start the server to generate the configuration file
- Configure the plugin in
BepInEx/config/org.tristan.rcon.cfg:- Set the RCON port (default is server port + 2)
- Change the RCON password. Empty password will disable the plugin.
- Configure IP filtering (optional):
- Whitelist: comma-separated list of allowed IP addresses or CIDR masks (e.g.,
192.168.1.0/24, 10.0.0.1) - Blacklist: comma-separated list of blocked IP addresses or CIDR masks
- If whitelist is empty, all IPs are allowed (except blacklisted)
- Whitelist: comma-separated list of allowed IP addresses or CIDR masks (e.g.,
- Configure Discord webhook to see command results in your Discord (optional but recommended)
- Configure security Discord webhook for security incident reports (optional but recommended)
- Restart the server to apply the changes
- Connect to the server using an RCON client (web or desktop application)
- For example, you can use this website https://cmsminecraftshop.com/en/console/. Select Conan Exiles (it has similar RCON packet structure), then enter your server IP, RCON port and password
- Or use desktop RCON client like mcrcon -> https://sourceforge.net/projects/mcrcon/
- After connecting you will be able to execute commands in the console.
IP Address Filtering with CIDR
The plugin supports CIDR notation for IP address filtering. Use CIDR masks to allow or block entire IP ranges:
- Single IP:
192.168.1.1(equivalent to192.168.1.1/32) - Subnet:
192.168.1.0/24(allows IPs from 192.168.1.0 to 192.168.1.255) - Larger network:
10.0.0.0/8(allows IPs from 10.0.0.0 to 10.255.255.255) - Multiple entries:
192.168.1.0/24, 10.0.0.1, 172.16.0.0/16(comma-separated)
Examples:
- Allow only local network:
Whitelist IP mask = 192.168.1.0/24 - Block specific IP range:
Blacklist IP mask = 203.0.113.0/24 - Allow multiple networks:
Whitelist IP mask = 192.168.1.0/24, 10.0.0.0/8
Command List
View all available commands:
list
All commands - detailed description with examples.
Notice
- Player management commands (kick, ban, heal, damage) should be used carefully
- Object deletion commands are irreversible
- The
-forceflag indeleteObjectsbypasses safety checks and can remove critical game objects (zone controllers, dungeons etc.). Use with extreme caution! - Not persistent objects (completely controlled by players) cannot be deleted or modified
If result of command execution is too long, it will be truncated in the RCON client, but the full result will be sent to Discord if you have configured a webhook URL in the plugin settings. For example if you execute findObjects command, it could return a lot of objects, and the RCON client will show only few of them. But the full result will be sent to Discord.
Examples
Gives player Ragnar level 4 Blackmetal Sword:
give Ragnar SwordBlackmetal -quality 4
Spawns 4 tamed level 3 Boars at coordinates x:90 y:31 z:90:
spawn Boar 90 31 90 -count 4 -level 3 -tamed
Sends a message Hello everyone! to the global chat:
say Hello everyone!
Custom commands
If you are a mod developer and want to add your own RCON commands for your server, please refer to the documentation.
You can also extend object information display by registering custom ZDO info providers via ZDOInfoUtil.RegisterInfoProvider().
Contacts
If you have any questions / bug reports / suggestions for improvement or found incompatibility with another mod, feel free to contact me in discord typedeff or on GitHub
CHANGELOG
1.6.3
- Added a Discord webhook name setting so you can customize the bot display name, or leave it empty to keep the webhook's default name and avatar
1.6.2
- Fixed container inventory commands (show/add/remove/clear) after the latest Valheim update
- Fixed item names on item stands and armor stands in object info
- Fixed item quality when spawning items with
-level
1.6.1
- Fixed an error when players connect to the server
1.6.0
- Fixed compatibility with new game version
1.5.1
- Added
-zone <x> <y>parameter tofindObjectsanddeleteObjectscommands for searching/deleting objects by zone coordinates - Added
-prefab <prefab name>option tomodifyObjectcommand to change object prefab - Added
-detailedflag tofindObjectscommand to show/hide detailed object information (like rotation, support, extra item information etc.) - Fixed an issue when sending large files to Discord (could occur when using -findObjects if more than 100k objects were found and the file size exceeded 10mb, which exceeds Discord's file upload limit)
- Such files are now not sent to Discord and are instead saved to disk on the server
- Improved object information display with better formatting and type-specific details
- Enhanced ZDO info system:
- More detailed and structured object information display
- For mod developers, the ability to add custom object information providers has been added. These will be used everywhere object information is displayed (e.g. findObjects, deleteObjects, etc.) -
ZDOInfoUtil.RegisterInfoProvider()
1.5.0
- Added security improvements:
- IP address filtering with CIDR mask support (whitelist/blacklist)
- Configure allowed/blocked IP addresses or IP ranges using CIDR notation
- Whitelist: if empty, all IPs allowed (except blacklisted)
- Blacklist: always blocks specified IPs/ranges (takes priority over whitelist)
- Security incident logging to Discord
- Reports failed login attempts, unauthorized access, IP filter rejections, and other security events
- Configurable webhook URL and message prefix for security reports
- Empty password protection: plugin is disabled if password is empty to prevent insecure configurations
- IP address filtering with CIDR mask support (whitelist/blacklist)
1.4.1
- Added container inventory management commands:
showContainer <id:userid>- display inventory contents with item indices[index]for each itemaddItemToContainer <id:userid> <item_name> [options]- add items to container- options:
-count <count>-quality <quality>-variant <variant>-data <key> <value>-nocrafter-durability <durability>-force - Default durability is set to maximum for the specified quality level
- options:
removeItemFromContainer <id:userid> [options]- remove items from container- options:
-index <index>(recommended) or-item <name>,-count <count>,-force - Use
-indexto precisely target items when multiple items with the same name exist
- options:
clearContainer <id:userid> [options]- clear container inventory- options:
-force
- options:
- Added
-durability <durability>option togivecommand- Default durability is set to maximum for the specified quality level
- Use
-durabilityto override the default value
1.4.0
- Changed custom object tag ZDO key to avoid conflict with portal tag (breaking: existing tagged objects created with older versions will not be found by tag)
- Removed
findObjectsNearcommand; usefindObjects -near <x> <y> <z> <radius>instead - Expanded
findObjectswith-nearfilter to search within a radius around a position - Added
-tag-old <tag>tofindObjectsto search objects that use the old tag key - Added
modifyObjectcommand to modify properties of persistent objects- Supports changing position, rotation, health and custom tag
- Will not modify non-persistent objects or objects owned by online players unless
-forceis used to bypass safety checks - Note: changes to position, rotation or health of objects currently owned by players may not be immediately visible to those players
- Added
disconnectAllcommand to disconnect all connected players from the server - Added Random Events commands:
eventsList- list all available random eventsstartEvent <event_name> <x> <y> <z>- start a random event at the specified positionstopEvent- stop the currently active random eventcurrentEvent- show the currently active random event and position
1.3.0
- deleteObjects: added
-forceflag to bypass safety checks; use with extreme caution as it can delete critical game objects (zones, dungeons, player models) - Simplified object id to
id:useridformat
1.2.2
- Fixed rcon packet size limit issue (huge thanks to ourbob for finding the issue)
1.2.1
- Improved give command
1.2.0
- Improved command execution result delivery to RCON clients and Discord
- Fixed errors when RCON clients disconnect (huge thanks to ourbob for finding and fixing the issue)
- Added deleteObjects command for removing objects by selected criteria
- Improved interface of some commands, added optional arguments
1.1.0
- Added new commands
- to manage global keys
- to show server time
- to find objects by name and creator id and get their information
- to execute Valheim console commands on the server
- to get player information
- to show all available commands
1.0.1
- Fixed updating server time while no players online
1.0.0
Public release