Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Use the default Minecraft port instead of custom one (#1277)
Dieser Commit ist enthalten in:
Ursprung
dd7b8b4d8f
Commit
00ed2284ec
@ -60,7 +60,7 @@ public class VelocityConfiguration implements ProxyConfig {
|
||||
private static final Logger logger = LogManager.getLogger(VelocityConfiguration.class);
|
||||
|
||||
@Expose
|
||||
private String bind = "0.0.0.0:25577";
|
||||
private String bind = "0.0.0.0:25565";
|
||||
@Expose
|
||||
private String motd = "<aqua>A Velocity Server";
|
||||
@Expose
|
||||
@ -503,7 +503,7 @@ public class VelocityConfiguration implements ProxyConfig {
|
||||
final PingPassthroughMode pingPassthroughMode = config.getEnumOrElse("ping-passthrough",
|
||||
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 boolean onlineMode = config.getOrElse("online-mode", true);
|
||||
final boolean forceKeyAuthentication = config.getOrElse("force-key-authentication", true);
|
||||
@ -830,7 +830,7 @@ public class VelocityConfiguration implements ProxyConfig {
|
||||
@Expose
|
||||
private boolean queryEnabled = false;
|
||||
@Expose
|
||||
private int queryPort = 25577;
|
||||
private int queryPort = 25565;
|
||||
@Expose
|
||||
private String queryMap = "Velocity";
|
||||
@Expose
|
||||
@ -849,7 +849,7 @@ public class VelocityConfiguration implements ProxyConfig {
|
||||
private Query(CommentedConfig config) {
|
||||
if (config != null) {
|
||||
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.showPlugins = config.getOrElse("show-plugins", false);
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
# Config version. Do not change this
|
||||
config-version = "2.7"
|
||||
|
||||
# What port should the proxy be bound to? By default, we'll bind to all addresses on port 25577.
|
||||
bind = "0.0.0.0: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:25565"
|
||||
|
||||
# What should be the MOTD? This gets displayed when the player adds your server to
|
||||
# their server list. Only MiniMessage format is accepted.
|
||||
@ -150,7 +150,7 @@ accepts-transfers = false
|
||||
enabled = false
|
||||
|
||||
# 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.
|
||||
map = "Velocity"
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren