#3 | AuthMeReloaded plugin setup for Minecraft Server
π Index
Using PaperMC as backend server (version 1.14.4) and Velocity as proxy with "modern" forwarding.
NOTE: The original AuthMeReloaded plugin can only lock commands from backend server, not proxy.
What is mentioned above means, for example: if you are not logged in, the command /unlinkaccount
(from Floodgate) can still be executed because that command is from proxy.
To prevent this, you will have to install MTM123's AuthMeReloaded on backend server and MTM123's AuthMeVelocity on proxy.
With Paper 16.5+, the above is not necessary because Geyser and Floodgate can be installed on the same Paper server without using proxy!
Assuming you installed MTM123's versions of AuthMeReloaded and AuthMeVelocity.
-
π
/velocity/plugins/authmevelocity/config.yml
:authServers: - main # Set the same name as in proxy config. allServersAreAuthServers: true # Enable for security commands: requireAuth: true # Must be enabled to block commands to unlogged players. whitelist: # Only permits registration commands for unlogged players. - /login - /register chatRequiresAuth: true # Don't allow chat from unlogged players.
-
π
/paper/plugins/authme/config.yml
:settings: applyBlindEffect: true # Blind players until logged. useWelcomeMessage: false # Disable welcome message. sessions: enabled: true # Don't prompt login if logged recently. timeout: 1 # 1 min of waiting. restrictions: allowChat: false # Don't allow chat from unlogged players. hideChat: true # Hide chat from unlogged players. maxRegPerIp: 0 # Disable this for compatibility. kickOnWrongPassword: true # Enable for security. timeout: 35 # Kick unlogged players after 35 sec. allowedNicknameCharacters: '\.?[a-zA-Z0-9_]*' # Modify if using GeyserMC/Floodgate. allowCommands: # Only permits registration commands for unlogged players. - /login - /register registration: messageInterval: 10 # Repeat login message every 10 sec.
With this setup, all commands will be blocked except those who permits him to log-in or register.
For clients using Minecraft 1.19+, the proxy can't block signed chat messages and player will be kicked out as safety measure.
The command will not be executed anyway.
- Groups:
default
default | |
---|---|
authme.player.login | βοΈ |
authme.player.register | βοΈ |
authme.player.changepassword | βοΈ |
Append to current permissions.
With this setup, all players can login, register and change their password when are logged in.
-
π
/paper/plugins/authme/config.yml
:settings: removeJoinMessage: true # Remove vanilla messages removeLeaveMessage: true
-
π
/paper/plugins/authme/commands.yml
:onLogin: infoLogin: executor: CONSOLE command: 'tellraw @a {"text":"%p joined the game","color":"yellow"}' onLogout: infoLogout: executor: CONSOLE command: 'tellraw @a {"text":"%p left the game","color":"yellow"}'