mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-01 20:50:28 +01:00
Fix address, port, & motd being ignored in config (#3259)
This commit is contained in:
parent
70ebc670bd
commit
1db77ad2bd
1 changed files with 6 additions and 0 deletions
|
@ -159,6 +159,7 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public static class BedrockConfiguration implements IBedrockConfiguration {
|
public static class BedrockConfiguration implements IBedrockConfiguration {
|
||||||
@AsteriskSerializer.Asterisk(isIp = true)
|
@AsteriskSerializer.Asterisk(isIp = true)
|
||||||
|
@JsonProperty("address")
|
||||||
private String address = "0.0.0.0";
|
private String address = "0.0.0.0";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -167,6 +168,7 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
|
||||||
}
|
}
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
|
@JsonProperty("port")
|
||||||
private int port = 19132;
|
private int port = 19132;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -178,6 +180,7 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
|
||||||
@JsonProperty("clone-remote-port")
|
@JsonProperty("clone-remote-port")
|
||||||
private boolean cloneRemotePort = false;
|
private boolean cloneRemotePort = false;
|
||||||
|
|
||||||
|
@JsonProperty("motd1")
|
||||||
private String motd1 = "GeyserMC";
|
private String motd1 = "GeyserMC";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -185,6 +188,7 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
|
||||||
return motd1;
|
return motd1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonProperty("motd2")
|
||||||
private String motd2 = "Geyser";
|
private String motd2 = "Geyser";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -237,6 +241,7 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
|
||||||
public static class RemoteConfiguration implements IRemoteConfiguration {
|
public static class RemoteConfiguration implements IRemoteConfiguration {
|
||||||
@Setter
|
@Setter
|
||||||
@AsteriskSerializer.Asterisk(isIp = true)
|
@AsteriskSerializer.Asterisk(isIp = true)
|
||||||
|
@JsonProperty("address")
|
||||||
private String address = "auto";
|
private String address = "auto";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -246,6 +251,7 @@ public abstract class GeyserJacksonConfiguration implements GeyserConfiguration
|
||||||
|
|
||||||
@JsonDeserialize(using = PortDeserializer.class)
|
@JsonDeserialize(using = PortDeserializer.class)
|
||||||
@Setter
|
@Setter
|
||||||
|
@JsonProperty("port")
|
||||||
private int port = 25565;
|
private int port = 25565;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue