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.
You are viewing a potentially older version of this package.
View all versions.
Valheim DevCommandsGuard
Server-configurable guard to reject clients with -console or devcommands, and highlights non-admin players using debugmode or god mode in red.
| Date uploaded | a week ago |
| Version | 1.0.0 |
| Download link | JgDev-Valheim_DevCommandsGuard-1.0.0.zip |
| Downloads | 17 |
| Dependency string | JgDev-Valheim_DevCommandsGuard-1.0.0 |
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.2202README
Valheim_DevCommandsGuard
Valheim BepInEx plugin for Thunderstore.
Features
- Server-side Configuration (
BepInEx/config/com.valheim.devcommandsguard.cfg):RejectClientsWithDevCommands(trueby default): Rejects non-admin clients launched with-consoleor withdevcommandsactive. Server admins (adminlist.txt) are never rejected.RejectClientsWithoutPlugin(trueby default): Rejects non-admin clients connecting withoutValheim_DevCommandsGuardinstalled.TagFormat("[DEV] {name}"by default): Custom overhead tag format for non-admin players withdebugmodeorgodmode enabled ({name}is replaced by the player name).TagColor("red"by default): Custom overhead tag color (e.g.,red,#FF0000,orange,yellow) synchronized from server to all clients.
- Client-side Reporting & Highlighting:
- Sends
-consoleanddevcommandsstatus to the server during handshake and upon console command execution. - Tag Name (Visible to Everyone): Displays the server-configured tag and color overhead for any non-admin player with
debugmodeorgodmode enabled. - 3D Model Highlight (Visible to Admins Only): Tints the 3D character model in red only when viewed by a server admin.
- Sends
- Runtime Admin Console Command (
dcg):- Server admins can view or update settings in real time from the in-game F5 console; changes are persisted to
com.valheim.devcommandsguard.cfgand broadcast to connected clients:dcg status— Print current configuration.dcg reject <on|off>— Enable/disable rejecting non-admin clients with-console/devcommands(immediately checks and disconnects violating active non-admin connections when enabled).dcg requireplugin <on|off>— Enable/disable rejecting non-admin clients missing the plugin (immediately checks and disconnects active non-admin connections missing the plugin when enabled).dcg tagcolor <color>— Update and broadcast the overhead tag color.dcg tagformat <format>— Update and broadcast the overhead tag format (e.g.,dcg tagformat [CHEATER] {name}).
- Server admins can view or update settings in real time from the in-game F5 console; changes are persisted to
Building & Packaging for Thunderstore
- Build the project with .NET SDK (
net48):dotnet build -c Release - Copy
bin/Release/net48/Valheim_DevCommandsGuard.dllintoThunderstore/plugins/. - Ensure
256x256icon.pngis inThunderstore/. - Zip the contents of
Thunderstore/(manifest.json,README.md,icon.png,plugins/Valheim_DevCommandsGuard.dll) asValheim-DevCommandsGuard.zip.