You are viewing a potentially older version of this package.
View all versions.
serverblankpassword
This mod is a small change to allow servers to have a blank password.
Date uploaded | 3 years ago |
Version | 0.0.2 |
Download link | 1010101110-serverblankpassword-0.0.2.zip |
Downloads | 1988 |
Dependency string | 1010101110-serverblankpassword-0.0.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.602README
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;
}
}