This plugin adds authorization system on your server. It works on a separate BungeeCord authorization server.
Requirements:
- BungeeCord server
- Database (MySQL)
- Spigot 1.12, 1.16+ versions
Installation:
1) Drop the plugin in the plugins folder of your spigot authorization server
2) Restart this server
3) Add your lobbies servers in config.yml (BungeeAuth folder)
4) Restart again
Config:
Code (YAML):
#mysql settings
mysql:
url
:
"jdbc:mysql://localhost:3306/database?useSSL=false&autoReConnect=true"
user
:
"root"
password
:
""
table
:
"test"
general
:
#BungeeCord servers where the player will get after authorization
#if there are several of them, then the player will get into a random
lobbies
:
-
"lobby1"
-
"lobby2"
-
"lobby3"
login_and_register_time_seconds
: 60
#SHA-256, MD5, e.t.c.
hash_passwords_alg
:
"SHA-256"
#If you have map for authorization server, set to true
#otherwise upload empty map in your server folder and set to false
auth_map_exist
: true
max_nick_length
: 40
min_nick_length
: 3
min_password_length
: 4
enable_accounts_per_ip_limiter
: true
max_accounts_per_ip
: 5
blocked_passwords
:
-
"1234"
-
"12345"
-
"qwerty"
incorrect_password_kick
: true
delay_before_connect_seconds
: 3
language:
login
:
"&ePlease, login with: &c/login [password]"
reg
:
"&ePlease, register with: &c/register [password]"
time_up
:
"&cTime is up"
long_nickname
:
"&cYour nickname too long"
short_nickname
:
"&cYour nickname too short"
space_not_allowed
:
"&cSpaces in nicknames is not allowed"
symbol_not_allowed
:
"&cYour nickname contains forbidden symbols"
changepassword
:
"&eIf you want to reset your password, please "
changepassword_click
:
"&c&lCLICK HERE"
reg_correct
:
"&eUse: &c/reg [password]"
login_correct
:
"&eUse: &c/login [password]"
short_password
:
"&cYour password too short"
blocked_password
:
"&cThis password is not allowed"
limit_per_ip
:
"&cYou reached the limit of accounts for your IP!"
successful_reg
:
"&aSuccessful registration! Please, make sure to remember your password"
successful_login
:
"&aSuccessful login!"
incorrect_password
:
"&cIncorrect password!"
registered_already
:
"&cYou already registered on the server, please login"
Demonstration:
Commands:
- /register (/reg) [password] - registration
- /login (/log, /l) [password] - authorization
- /changepassword - change the password
Issues:
Issues can be reported in discussion tab