SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedQuality of life & UI

Login Protection

by Xel · for Vintage Story

Prevent players from taking damage until they move after logging in

3.6KDownloads
1.16.5Latest game version
Vintage Story ModDBSource

About Login Protection

From Vintage Story ModDB

Prevent players from taking damage until they move after logging in

Tired of dying when logging into a server?

Login Protection prevents the player from taking damage when they join a server because the server thinks the player is ready even though their client is still loading.

Once the player moves or does anything, they are considered "active" and no longer protected. Players standing in lava or on fire will also not be protected.

There is also a single config option ProtectionTimeSeconds. If this is set to a number then the player's protection will expire that many seconds after logging in (this may be before the player can actually see anything. Make sure you set the number high enough).

 

Exposes a single serverside method to check if a player is protected or not, as well as 3 events:

<pre class="language-csharp">var loginProtection = Api.ModLoader.GetModSystem&lt;LoginProtectionModSystem&gt;(); loginProtection.OnLoginProtectionStart += player =&gt; doSomething(player); loginProtection.OnLoginProtectionStop += player =&gt; doSomething(player); loginProtection.OnShouldProtect += player =&gt; shouldProtect(player); if (wouldDoSomething &amp;&amp; loginProtection.IsPlayerProtected(player)) Dont();</pre>
Full code example using reflection:
<pre class="language-csharp">internal class YourModSystem : ModSystem { private System.Func&lt;IPlayer, bool&gt; isPlayerProtected;

public void InjurePlayer (IPlayer player) { if (_api.IsServerSide()) { if (isPlayerProtected == null) { var loginProtection = _api.ModLoader.GetModSystem("LoginProtection.LoginProtectionModSystem"); if (loginProtection != null) { var isPlayerProtectedMethod = loginProtection.GetType().GetMethod("IsPlayerProtected"); isPlayerProtected = isPlayerProtectedMethod.CreateDelegate(typeof(System.Func&lt;IPlayer, bool&gt;), loginProtection) as System.Func&lt;IPlayer, bool&gt;; } else { isPlayerProtected = (IPlayer p) =&gt; false; } } if (!isPlayerProtected(player))) { ExplodePlayer(player); } } } }</pre>

Highlights

From source data

Game versions

Built for Vintage Story 1.16.5.

Footprint

Rated a light load on a server.

Login Protection on Nxeon

From our catalogue
One-click install
Supported on Nxeon Vintage Story servers. We download it from Vintage Story ModDB, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Vintage Story — 1 GB (1 GB RAM). This follows our own load rating above, not a benchmark.

Run Login Protection on a Vintage Story server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Vintage Story ModDB as “Utility”

Quality of life & UI

Small conveniences, tweaks and interface improvements players notice straight away.

Runs on your server

From source side support

Vintage Story ModDB lists Login Protection as required on the server. Check its Vintage Story ModDB page to see whether players need it too.

Compatibility

Game
Vintage Story
Runs on
Serverrequired on the server
Game versions
1.16.5

Verified at the source

  • ✓Vintage Story ModDBOfficial listing, checked 2026-09-24Open ↗
  • ✓AuthorXel, as published on Vintage Story ModDB
  • ✓LicenseNot published by the sourceFree

Login Protection, answered

Generated from the mod’s own source data.

Do my players need to install Login Protection?

Vintage Story ModDB lists Login Protection as required on the server. Check its Vintage Story ModDB page to see whether players need it too.

Is it free?

Yes. Login Protection is free to download from Vintage Story ModDB.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Login Protection on a Vintage Story server.

Deploy in about a minute from $4.00 a month, then add Login Protection in one click.