Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Document velocity.toml more carefully.
Dieser Commit ist enthalten in:
Ursprung
edfdcf3d53
Commit
d3d683dfc0
@ -35,7 +35,8 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi
|
|||||||
@Comment("What port should the proxy be bound to? By default, we'll bind to all addresses on port 25577.")
|
@Comment("What port should the proxy be bound to? By default, we'll bind to all addresses on port 25577.")
|
||||||
private String bind = "0.0.0.0:25577";
|
private String bind = "0.0.0.0:25577";
|
||||||
|
|
||||||
@Comment("What should be the MOTD? Legacy color codes and JSON are accepted.")
|
@Comment({"What should be the MOTD? This gets displayed when the player adds your server to",
|
||||||
|
"their server list. Legacy color codes and JSON are accepted."})
|
||||||
private String motd = "&3A Velocity Server";
|
private String motd = "&3A Velocity Server";
|
||||||
|
|
||||||
@Comment({
|
@Comment({
|
||||||
@ -406,14 +407,16 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi
|
|||||||
private static class Servers {
|
private static class Servers {
|
||||||
|
|
||||||
@IsMap
|
@IsMap
|
||||||
@Comment("Configure your servers here.")
|
@Comment({"Configure your servers here. Each key represents the server's name, and the value",
|
||||||
|
"represents the IP address of the server to connect to."})
|
||||||
private Map<String, String> servers = ImmutableMap.of(
|
private Map<String, String> servers = ImmutableMap.of(
|
||||||
"lobby", "127.0.0.1:30066",
|
"lobby", "127.0.0.1:30066",
|
||||||
"factions", "127.0.0.1:30067",
|
"factions", "127.0.0.1:30067",
|
||||||
"minigames", "127.0.0.1:30068"
|
"minigames", "127.0.0.1:30068"
|
||||||
);
|
);
|
||||||
|
|
||||||
@Comment("In what order we should try servers when a player logs in or is kicked from a server.")
|
@Comment("In what order we should try servers when a player logs in or is kicked from a"
|
||||||
|
+ "server.")
|
||||||
@ConfigKey("try")
|
@ConfigKey("try")
|
||||||
private List<String> attemptConnectionOrder = Arrays.asList("lobby");
|
private List<String> attemptConnectionOrder = Arrays.asList("lobby");
|
||||||
|
|
||||||
@ -523,13 +526,14 @@ public class VelocityConfiguration extends AnnotatedConfig implements ProxyConfi
|
|||||||
private static class Advanced {
|
private static class Advanced {
|
||||||
|
|
||||||
@Comment({
|
@Comment({
|
||||||
"How large a Minecraft packet has to be before we compress it. Setting this to zero will compress all packets, and",
|
"How large a Minecraft packet has to be before we compress it. Setting this to zero will",
|
||||||
"setting it to -1 will disable compression entirely."
|
"compress all packets, and setting it to -1 will disable compression entirely."
|
||||||
})
|
})
|
||||||
@ConfigKey("compression-threshold")
|
@ConfigKey("compression-threshold")
|
||||||
private int compressionThreshold = 1024;
|
private int compressionThreshold = 1024;
|
||||||
|
|
||||||
@Comment("How much compression should be done (from 0-9). The default is -1, which uses zlib's default level of 6.")
|
@Comment({"How much compression should be done (from 0-9). The default is -1, which uses zlib's",
|
||||||
|
"default level of 6."})
|
||||||
@ConfigKey("compression-level")
|
@ConfigKey("compression-level")
|
||||||
private int compressionLevel = -1;
|
private int compressionLevel = -1;
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren