Skip to content

LeandroTheDev/server_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Auth

Increase the security for your server by adding a new account register and login on player connections, totally server side,

Features:

  • Register account system ex: /register 123
  • Login account system ex: /login 123
  • Change password system ex: /changepassword 321
  • Admin change password system ex: /forcechangepassword test 321
  • Configuration files

Player unlogged cannot:

  • Drop items
  • Execute commands
  • Break blocks
  • Get dropped items
  • Use inventory
  • Deal damage
  • Receive damage
  • Lose saturation
  • Move

Observations

Players not registered will not count as unlogged player. (Configurable)

Players has 20 seconds to login, if player not logged will be automatically disconnected from the server. (Configurable)

Too many wrongs password will kick user and ban for some seconds. (Configurable)

Entering too many times in server and not logging will ban the user for some seconds. (Configurable)

When a player enters in the server all the inventory is saved locally and the player inventory is clear, so the unlogged players will not have access to the inventory, when the player successfully login in, the inventory is restored.

Unfurtunally you can view the players password in servers log if you have acess to it, this is because the native code logs all commands from players, you know how to disable it? feel free to pull request.

The players password is saved based in the player name, if the player changes the name it will lost that password and will need to register again.

Server Auth is completly server side so no needs to clients have this mod installed to play on the server.

Considerations

This mod change a lot of native code, and can break easily throught updates, please make a backup in your world before adding it.

Performance can be a impacted on the server, because of authentication verification.

To much unlogged players can cause performances leaks because of forcing stop moviment.

About Server Auth

Server Auth is open source project and can easily be accessed on the github, all contents from this mod is completly free.

If you want to contribute into the project you can access the project github and make your pull request.

You are free to fork the project and make your own version of Server Auth, as long the name is changed

Register

image image image

Login

image image

demonstration.mp4
inventory_demonstration.mp4

Building

Learn more about vintage story modding in Linux or Windows

Create a template with name ServerAuth, and paste all contents from this project in there

Linux

Make a symbolic link for fast tests

  • ln -s /path/to/project/Releases/serverauth/* /path/to/game/Mods/ServerAuth/

Execute the comamnd ./build.sh, consider downloading dotnet 7 in our linux distribution if you dont have it.

Windows

Just open the visual studio with ServerAuth.sln

FTM License