Skip to content

Commit

Permalink
Use the default Minecraft port instead of custom one (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 authored Aug 10, 2024
1 parent dd7b8b4 commit 00ed228
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -503,7 +503,7 @@ public static VelocityConfiguration read(Path path) throws IOException {
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);
Expand Down Expand Up @@ -830,7 +830,7 @@ private static class Query {
@Expose
private boolean queryEnabled = false;
@Expose
private int queryPort = 25577;
private int queryPort = 25565;
@Expose
private String queryMap = "Velocity";
@Expose
Expand All @@ -849,7 +849,7 @@ private Query(boolean queryEnabled, int queryPort, String queryMap, boolean show
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);
}
Expand Down
6 changes: 3 additions & 3 deletions proxy/src/main/resources/default-velocity.toml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 00ed228

Please sign in to comment.