Valheim
0 of 0

File information

Last updated

Original upload

Created by

icecub333

Uploaded by

icecub333

Virus scan

Safe to use

Tags for this mod

About this mod

This mod makes your server a "hardcore" server. Meaning that upon death, that character can no longer be used to play on the server. A new character must be made.

Requirements
Permissions and credits
Hardcore Server
This mod turns your server into a "Hardcore" server. Any player that dies with their character, will be forced to create a new character in order to play on the server again.

How does it work?
When a character dies, that player will be kicked from your server. If they attempt to connect with the same character again, it'll be instantly kicked.

Is it fool proof?
No. Players with extensive scripting knowledge may find a way to circumvent the "already died" detection methods used by this mod. Unfortunately it's not possible (unless you use server side characters) to implement more security as it would require permanently banning the player all together. Which is probably not what you want.

Configuration Options
isModEnabled (default true) = If set to false, will completely disable the mod.
exemptAdmins (default true) = If set to true, Admins on your server will not be kicked upon death and can keep on using their characters.
uniqueCharacter (default true) = If set to true, the owner of a character that has died on your server, cannot use a new character using the same character name again.
uniqueCharacters (default true) = If set to true, only the owner of a character name can use a new character with the same name(s) as the one(s) that have already died, unless uniqueCharacter is set to true as well.

How do I reset the mod?
Simply go into <Your Valheim Installation Directory>/BepInEx/plugins/HardcoreServer and delete the HardcoreServer.db file in there.

How do I install this mod?
This is a server side only mod! Clients don't need and should not install this mod at all!

That said: Make sure you install all the dependencies first (if you don't have them already)! Then simply drop the DLL files inside the zip archive in your BepInEx/plugins directory. (Re)start your server. Modify the configuration file in BepInEx/config if you want and restart the server again. No need to restart if you don't want to modify it.

Client Admin Mod
The optional client admin mod allows Admins on the server to perform a small list of commands (in the chat system!):

/pinfo --sid=STEAMID
- Replace STEAMID with the steamid of the user.
This will return a list of all characters and their Character IDs to the Admin in chat.

/pardon --uid=USERID
- Replace USERID with the Character ID of the character.
This will set the death count of that character to 0 so it can login again.

/setadmin --uid=USERID --admin=true/false
- Replace USERID with the Character ID of the character.
- Use --admin=true to set character to admin or --admin=false to set as normal player
This will not actually make the character an Admin on your server! It'll just allow that character to revive after death without being kicked.

The Client Admin Mod requires the user to be Admin on your server! If they're not an Admin, this mod will not work.