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:
Ursprung
b86622b849
Commit
2b4b77ef95
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren