This is a small Bungee/Waterfall plugin I made for my own server. Frequently seeing LuckPerms' warning about UUID being changed when a player joins with a similar username (with different caps) led me to making this small plugin.
The plugin will prevent connections from players with duplicated names. For example: "Bob" is registered, but someone joins with "bob", making the UUID changes. Though this is often prevented by AuthMe, Bungee plugins is unaware of AuthMe's intervention. This plugin seeks to solve that.
This plugin will require AuthMeReloaded with MySQL/MariaDB server setup. Please read instructions carefully to avoid bugs and issues
Installations:
1. Setup AuthMeReloaded correctly (This is up to you)
2. Make sure the columns "username" and "realname" aren't changed in the Database.
3. Change your configs accordingly, such as database info
4. Enjoy!
Code (YAML):
//Your AuthMe Database Info
database:
host
:
"localhost"
port
:
"3306"
database_name
:
"authme"
username
:
"root"
password
:
""
//Enable Web Registration, this is useful if you only allow
//your users to register through a website. It will prevent
//users who are not registered in the database.
web_register
: false
//Kick message when a player has not registered, use
"\n" to separate lines
web_register_msg
:
"&cPlease register at\n&fid.example.com"
//Kick message when a player join with the wrong name
wrong_name
:
"&cYou should login with %realname%"
Known Problem:
There is a flaw with this solution, for example:
A player named "Bob" joins the server, but does not register then leaves. Next player named "bob" joins, the UUID problem persists. The plugin will only work if one of them is registered.
This is unlikely to be solved, as AuthMe is handled in Spigot, there is no other way around this (without making it overcomplicated). All this plugin does is checking AuthMe's database. However, making players registering through a website would completely resolve this issue.