- Compatible API Versions
- 1.0
- Sourcecode
- https://github.com/Shfiso-a/FormAuth
A simple authentication plugin for Nukkit Minecraft servers that uses forms for login and registration.
Telegram: @Shfisoa
please report bugs/issues in Discussion
check Updates to see plugin features
Supported Database types are: H2, Yaml, MySql, MariaDB
Autologin is based on device-id for now (i will add ip-based autologin too)
Config Example:
please report bugs/issues in Discussion
check Updates to see plugin features
Supported Database types are: H2, Yaml, MySql, MariaDB
Autologin is based on device-id for now (i will add ip-based autologin too)
Config Example:
YAML:
# FormAuth Configuration
# FormAuth Configuration
# Database settings
# Supported database types:
# - "yaml" : File-based local YAML storage (e.g. players.yml)
# - "h2" : Local SQL engine using H2 database file
# - "mysql" : Remote MySQL server database
# - "mariadb" : Remote MariaDB server database
database:
type: "yaml"
# File path to store player credentials if type is "yaml"
path: "plugins/FormAuth/players.yml"
# File path to store H2 database if type is "h2" (Do NOT add file extension)
h2:
path: "plugins/FormAuth/players"
# MySQL and MariaDB connection parameters
mysql:
host: "localhost"
port: 3306
database: "formauth"
user: "root"
password: ""
# Authentication settings
login:
timeout: 60
max_attempts: 5
block:
enabled: true
duration: 15 # Minutes
afk:
timeout: 60
kick:
"on":
form:
close: true
# Persian and Arabic support
persian:
text:
enabled: false
# Auto-Login settings
auto-login:
enabled: true
# Auto-Login modes:
# - "device": DeviceID based
# - "off": Disable auto login
type: "device"
duration: 15 # Minutes
#Do NOT share this salt
server-salt: ""
# Custom UI forms customization
form:
login:
title: "Login"
label: "Welcome back! Please enter your password to login:"
password:
label: "Password"
placeholder: "Enter your password here"
register:
title: "Register"
label: "Welcome! Please register to play on this server:"
password:
label: "Password"
placeholder: "Enter your password here"
confirm:
label: "Confirm Password"
placeholder: "Enter your password again"
# Plugin messages
messages:
register:
success: "You have successfully registered!"
error: "Error during registration. Please try again."
login:
success: "You have successfully logged in!"
error: "Invalid password. Please try again."
too_many_attempts: "Too many failed login attempts. Please try again later."
blocked: "You are temporarily blocked due to too many failed login attempts! Try again in %time% minutes."
not:
registered: "You are not registered. Please register first."
already:
registered: "You are already registered."
authenticated: "You are already authenticated."
afk:
kick: "You have been kicked for being AFK during authentication"
form:
close:
kick: "Authentication required"
autologin:
success: "Auto-logged in!"