mirror of
https://github.com/GeyserMC/GeyserConnect.git
synced 2025-06-26 14:15:22 +02:00
Pass through cache-chunks
to the config and disable passwords by default
This commit is contained in:
parent
498df7983b
commit
3b94006504
4 changed files with 10 additions and 3 deletions
|
@ -74,8 +74,11 @@ public class GeyserConnectConfig {
|
||||||
|
|
||||||
private int port;
|
private int port;
|
||||||
|
|
||||||
|
@JsonProperty("cache-chunks")
|
||||||
|
private boolean cacheChunks = true;
|
||||||
|
|
||||||
@JsonProperty("allow-password-authentication")
|
@JsonProperty("allow-password-authentication")
|
||||||
private boolean allowPasswordAuthentication = true;
|
private boolean allowPasswordAuthentication = false;
|
||||||
|
|
||||||
@JsonProperty("debug-mode")
|
@JsonProperty("debug-mode")
|
||||||
private boolean debugMode;
|
private boolean debugMode;
|
||||||
|
|
|
@ -71,6 +71,7 @@ public class GeyserProxyBootstrap implements GeyserBootstrap {
|
||||||
text = text.replace("PORT", String.valueOf(multiConfig.getGeyser().getPort()));
|
text = text.replace("PORT", String.valueOf(multiConfig.getGeyser().getPort()));
|
||||||
text = text.replaceAll("MOTD", multiConfig.getMotd());
|
text = text.replaceAll("MOTD", multiConfig.getMotd());
|
||||||
text = text.replace("PLAYERS", String.valueOf(multiConfig.getMaxPlayers()));
|
text = text.replace("PLAYERS", String.valueOf(multiConfig.getMaxPlayers()));
|
||||||
|
text = text.replace("CACHECHUNKS", String.valueOf(multiConfig.getGeyser().isCacheChunks()));
|
||||||
text = text.replace("ALLOWPASSWORDAUTHENTICATION", String.valueOf(multiConfig.getGeyser().isAllowPasswordAuthentication()));
|
text = text.replace("ALLOWPASSWORDAUTHENTICATION", String.valueOf(multiConfig.getGeyser().isAllowPasswordAuthentication()));
|
||||||
|
|
||||||
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
|
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
|
||||||
|
|
|
@ -25,8 +25,11 @@ geyser:
|
||||||
# The port that will listen for connections
|
# The port that will listen for connections
|
||||||
port: 19133
|
port: 19133
|
||||||
|
|
||||||
|
# Configures if chunk caching should be enabled or not.
|
||||||
|
cache-chunks: true
|
||||||
|
|
||||||
# If password authentication should be allowed in online mode.
|
# If password authentication should be allowed in online mode.
|
||||||
allow-password-authentication: true
|
allow-password-authentication: false
|
||||||
|
|
||||||
# If debug messages should be sent through console, has to be enabled in both places to work
|
# If debug messages should be sent through console, has to be enabled in both places to work
|
||||||
debug-mode: false
|
debug-mode: false
|
||||||
|
|
|
@ -101,7 +101,7 @@ show-cooldown: true
|
||||||
# up a lot of RAM. However, when using the Spigot version of Geyser, support for features
|
# up a lot of RAM. However, when using the Spigot version of Geyser, support for features
|
||||||
# or implementations this allows is automatically enabled without the additional caching as
|
# or implementations this allows is automatically enabled without the additional caching as
|
||||||
# Geyser has direct access to the server itself.
|
# Geyser has direct access to the server itself.
|
||||||
cache-chunks: false
|
cache-chunks: CACHECHUNKS
|
||||||
|
|
||||||
# Specify how many days images will be cached to disk to save downloading them from the internet.
|
# Specify how many days images will be cached to disk to save downloading them from the internet.
|
||||||
# A value of 0 is disabled. (Default: 0)
|
# A value of 0 is disabled. (Default: 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue