forked from GeyserMC/Geyser
Merge Floodgate changes
This commit is contained in:
commit
2fc591e341
16 changed files with 351 additions and 24 deletions
|
@ -96,6 +96,11 @@ public class GeyserBukkitConfiguration implements IGeyserConfiguration {
|
|||
return config.getBoolean("allow-third-party-capes", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFloodgateKeyFile() {
|
||||
return config.getString("floodgate-key-file", "public-key.pem");
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMetricsInfo getMetrics() {
|
||||
return metricsInfo;
|
||||
|
|
|
@ -97,6 +97,11 @@ public class GeyserBungeeConfiguration implements IGeyserConfiguration {
|
|||
return config.getBoolean("allow-third-party-capes", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFloodgateKeyFile() {
|
||||
return config.getString("floodgate-key-file", "public-key.pem");
|
||||
}
|
||||
|
||||
@Override
|
||||
public BungeeMetricsInfo getMetrics() {
|
||||
return metricsInfo;
|
||||
|
|
|
@ -100,6 +100,11 @@ public class GeyserSpongeConfiguration implements IGeyserConfiguration {
|
|||
return node.getNode("allow-third-party-capes").getBoolean(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFloodgateKeyFile() {
|
||||
return node.getNode("floodgate-key-file").getString("public-key.pem");
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpongeMetricsInfo getMetrics() {
|
||||
return metricsInfo;
|
||||
|
|
|
@ -39,6 +39,9 @@ public class GeyserConfiguration implements IGeyserConfiguration {
|
|||
private BedrockConfiguration bedrock;
|
||||
private RemoteConfiguration remote;
|
||||
|
||||
@JsonProperty("floodgate-key-file")
|
||||
private String floodgateKeyFile;
|
||||
|
||||
private Map<String, UserAuthenticationInfo> userAuths;
|
||||
|
||||
@JsonProperty("ping-passthrough")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue