3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Fix missing constructor parameter and not loading show-plugins option from configuration

Dieser Commit ist enthalten in:
Mark Vainomaa 2018-10-27 22:52:04 +03:00
Ursprung b86622b849
Commit 2b4b77ef95
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1B3F9523B542D315

Datei anzeigen

@ -604,10 +604,11 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi
private Query() {} private Query() {}
private Query(boolean queryEnabled, int queryPort, String queryMap) { private Query(boolean queryEnabled, int queryPort, String queryMap, boolean showPlugins) {
this.queryEnabled = queryEnabled; this.queryEnabled = queryEnabled;
this.queryPort = queryPort; this.queryPort = queryPort;
this.queryMap = queryMap; this.queryMap = queryMap;
this.showPlugins = showPlugins;
} }
private Query(Toml toml) { private Query(Toml toml) {
@ -615,6 +616,7 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi
this.queryEnabled = toml.getBoolean("enabled", false); this.queryEnabled = toml.getBoolean("enabled", false);
this.queryPort = toml.getLong("port", 25577L).intValue(); this.queryPort = toml.getLong("port", 25577L).intValue();
this.queryMap = toml.getString("map", "Velocity"); this.queryMap = toml.getString("map", "Velocity");
this.showPlugins = toml.getBoolean("show-plugins", false);
} }
} }