serverblankpassword
This mod is a small change to allow servers to have a blank password.
About this mod Author’s original text
server blank passwords
This mod allows public servers to have a blank password. This makes it so users skip the password entry dialog and make it into game faster.
I would only recommend this for servers that have whitelisting. Otherwise you are opening wide your public server for greifers.
If you are already specifically whitelisting people, why make them enter a password as well...?
install mod
have bepinex installed on your server
download then drop the.dll file into your \BepInEx\plugins folder
how to remove password
in your server start script where you have the -password "" just remove it
start_server_bepinex.sh./valheim_server.x86_64 -name "My server" -port 2456 -world "Dedicated" ##remove this##-password "secret"##remove this##
code
//server allow blank passwords
[HarmonyPatch(typeof(FejdStartup), "IsPublicPasswordValid")]
public static class Passwordfix
{
private static bool Prefix(string password, World world, ref bool __result, FejdStartup __instance)
{
__result = true;
return false;
}
}
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: