AuthCore
AuthCore is a secure authentication mod for Fabric 1.21.1 servers. It is designed to replace unstable login systems by providing player registration, login, local SQLite storage, and BCrypt password hashing.
It is a server-side-only mod: players do not need to install it on their clients.
Features
- Player account registration.
- Secure login system.
- Password changes.
- BCrypt password hashing.
- Local SQLite database.
- Configurable login timeout.
- Safe disconnection after the timeout expires.
- ActionBar instructions and countdown.
- Configurable Spanish messages.
- Blocks movement, interactions, items, attacks, blocks, and damage before login.
- Administrator commands.
- Compatible with Fabric 1.21.1 and Java 21.
Player Commands
| Command | Description |
|---|---|
/register <password> <confirmation> |
Creates an account and authenticates the player. |
/login <password> |
Logs into a registered account. |
/changepassword <current> <new> <confirmation> |
Changes the password of an authenticated account. |
Example:
/register MySecurePassword MySecurePassword
/login MySecurePassword
/changepassword MySecurePassword AnotherSecurePassword AnotherSecurePassword
Administrator Commands
These commands require permission level 4. For now, the target player must be online.
| Command | Description |
|---|---|
/auth reload |
Reloads the configuration and messages. |
/auth unregister <player> |
Deletes a player's account. |
/auth resetpassword <player> <password> |
Resets a player's password. |
/auth force <player> |
Forces authentication for an online player. |
Configuration
On its first server start, AuthCore creates:
config/authcore.properties
config/authcore.db
authcore.properties lets you configure the login timeout and all Spanish messages. The authcore.db database stores registered accounts and their BCrypt password hashes.
Example:
login.timeout-seconds=60
messages.login-prompt=Inicia sesion con /login <contrasena>. Tiempo: {seconds}s
messages.register-prompt=Registrate con /register <contrasena> <confirmacion>. Tiempo: {seconds}s
After editing the configuration, restart the server or run:
/auth reload
Installation
- Install Fabric Loader for Minecraft 1.21.1.
- Install a Fabric API version compatible with 1.21.1.
- Use Java 21.
- Copy
authcore-0.1.0.jarinto the server'smodsfolder. - Remove any other authentication mod that may conflict with AuthCore.
- Start the server.
AuthCore was built to provide a stable, secure, and extensible authentication foundation for Fabric servers.