mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 14:15:22 +02:00
Add togglable password authentication option
This commit is contained in:
parent
c40f9764ec
commit
9eba5525f4
4 changed files with 8 additions and 1 deletions
|
@ -74,6 +74,9 @@ public class GeyserConnectConfig {
|
|||
|
||||
private int port;
|
||||
|
||||
@JsonProperty("allow-password-authentication")
|
||||
private boolean allowPasswordAuthentication = true;
|
||||
|
||||
@JsonProperty("debug-mode")
|
||||
private boolean debugMode;
|
||||
|
||||
|
|
|
@ -71,6 +71,7 @@ public class GeyserProxyBootstrap implements GeyserBootstrap {
|
|||
text = text.replace("PORT", String.valueOf(multiConfig.getGeyser().getPort()));
|
||||
text = text.replaceAll("MOTD", multiConfig.getMotd());
|
||||
text = text.replace("PLAYERS", String.valueOf(multiConfig.getMaxPlayers()));
|
||||
text = text.replace("ALLOWPASSWORDAUTHENTICATION", String.valueOf(multiConfig.getGeyser().isAllowPasswordAuthentication()));
|
||||
|
||||
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
|
||||
geyserConfig = objectMapper.readValue(text, GeyserProxyConfiguration.class);
|
||||
|
|
|
@ -25,6 +25,9 @@ geyser:
|
|||
# The port that will listen for connections
|
||||
port: 19133
|
||||
|
||||
# If password authentication should be allowed in online mode.
|
||||
allow-password-authentication: true
|
||||
|
||||
# If debug messages should be sent through console, has to be enabled in both places to work
|
||||
debug-mode: false
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ remote:
|
|||
port: 25565
|
||||
# Authentication type. Can be offline, online, or floodgate (see https://github.com/GeyserMC/Geyser/wiki/Floodgate).
|
||||
auth-type: online
|
||||
allow-password-authentication: false
|
||||
allow-password-authentication: ALLOWPASSWORDAUTHENTICATION
|
||||
|
||||
# Floodgate uses encryption to ensure use from authorised sources.
|
||||
# This should point to the public key generated by Floodgate (Bungee or CraftBukkit)
|
||||
|
|
Loading…
Add table
Reference in a new issue