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

Use the default Minecraft port instead of custom one (#1277)

Dieser Commit ist enthalten in:
Max Lee 2024-08-10 20:12:19 +01:00 committet von GitHub
Ursprung dd7b8b4d8f
Commit 00ed2284ec
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194
2 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -60,7 +60,7 @@ public class VelocityConfiguration implements ProxyConfig {
private static final Logger logger = LogManager.getLogger(VelocityConfiguration.class); private static final Logger logger = LogManager.getLogger(VelocityConfiguration.class);
@Expose @Expose
private String bind = "0.0.0.0:25577"; private String bind = "0.0.0.0:25565";
@Expose @Expose
private String motd = "<aqua>A Velocity Server"; private String motd = "<aqua>A Velocity Server";
@Expose @Expose
@ -503,7 +503,7 @@ public class VelocityConfiguration implements ProxyConfig {
final PingPassthroughMode pingPassthroughMode = config.getEnumOrElse("ping-passthrough", final PingPassthroughMode pingPassthroughMode = config.getEnumOrElse("ping-passthrough",
PingPassthroughMode.DISABLED); PingPassthroughMode.DISABLED);
final String bind = config.getOrElse("bind", "0.0.0.0:25577"); final String bind = config.getOrElse("bind", "0.0.0.0:25565");
final int maxPlayers = config.getIntOrElse("show-max-players", 500); final int maxPlayers = config.getIntOrElse("show-max-players", 500);
final boolean onlineMode = config.getOrElse("online-mode", true); final boolean onlineMode = config.getOrElse("online-mode", true);
final boolean forceKeyAuthentication = config.getOrElse("force-key-authentication", true); final boolean forceKeyAuthentication = config.getOrElse("force-key-authentication", true);
@ -830,7 +830,7 @@ public class VelocityConfiguration implements ProxyConfig {
@Expose @Expose
private boolean queryEnabled = false; private boolean queryEnabled = false;
@Expose @Expose
private int queryPort = 25577; private int queryPort = 25565;
@Expose @Expose
private String queryMap = "Velocity"; private String queryMap = "Velocity";
@Expose @Expose
@ -849,7 +849,7 @@ public class VelocityConfiguration implements ProxyConfig {
private Query(CommentedConfig config) { private Query(CommentedConfig config) {
if (config != null) { if (config != null) {
this.queryEnabled = config.getOrElse("enabled", false); this.queryEnabled = config.getOrElse("enabled", false);
this.queryPort = config.getIntOrElse("port", 25577); this.queryPort = config.getIntOrElse("port", 25565);
this.queryMap = config.getOrElse("map", "Velocity"); this.queryMap = config.getOrElse("map", "Velocity");
this.showPlugins = config.getOrElse("show-plugins", false); this.showPlugins = config.getOrElse("show-plugins", false);
} }

Datei anzeigen

@ -1,8 +1,8 @@
# Config version. Do not change this # Config version. Do not change this
config-version = "2.7" config-version = "2.7"
# What port should the proxy be bound to? By default, we'll bind to all addresses on port 25577. # What port should the proxy be bound to? By default, we'll bind to all addresses on port 25565.
bind = "0.0.0.0:25577" bind = "0.0.0.0:25565"
# What should be the MOTD? This gets displayed when the player adds your server to # What should be the MOTD? This gets displayed when the player adds your server to
# their server list. Only MiniMessage format is accepted. # their server list. Only MiniMessage format is accepted.
@ -150,7 +150,7 @@ accepts-transfers = false
enabled = false enabled = false
# If query is enabled, on what port should the query protocol listen on? # If query is enabled, on what port should the query protocol listen on?
port = 25577 port = 25565
# This is the map name that is reported to the query services. # This is the map name that is reported to the query services.
map = "Velocity" map = "Velocity"