From ce7d1dcb2662e6c3f4416092d40dc226e344e441 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 23 Jan 2021 01:34:38 -0500 Subject: [PATCH] A new year, a new color for Velocity! --- .../proxy/command/builtin/VelocityCommand.java | 4 +++- .../velocitypowered/proxy/config/VelocityConfiguration.java | 2 +- proxy/src/main/resources/default-velocity.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java index 1b5e61919..3297f457b 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java @@ -38,6 +38,7 @@ import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.event.ClickEvent; import net.kyori.adventure.text.event.HoverEvent; import net.kyori.adventure.text.format.NamedTextColor; +import net.kyori.adventure.text.format.TextColor; import net.kyori.adventure.text.format.TextDecoration; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -188,6 +189,7 @@ public class VelocityCommand implements SimpleCommand { private static class Info implements SubCommand { + private static final TextColor VELOCITY_COLOR = TextColor.fromHexString("#09add3"); private final ProxyServer server; private Info(ProxyServer server) { @@ -205,7 +207,7 @@ public class VelocityCommand implements SimpleCommand { TextComponent velocity = Component.text().content(version.getName() + " ") .decoration(TextDecoration.BOLD, true) - .color(NamedTextColor.DARK_AQUA) + .color(VELOCITY_COLOR) .append(Component.text(version.getVersion()).decoration(TextDecoration.BOLD, false)) .build(); TextComponent copyright = Component diff --git a/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java b/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java index 5f849ff47..803312423 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/config/VelocityConfiguration.java @@ -458,7 +458,7 @@ public class VelocityConfiguration implements ProxyConfig { PingPassthroughMode.DISABLED); String bind = config.getOrElse("bind", "0.0.0.0:25577"); - String motd = config.getOrElse("motd", "&3A Velocity Server"); + String motd = config.getOrElse("motd", " add3A Velocity Server"); int maxPlayers = config.getIntOrElse("show-max-players", 500); Boolean onlineMode = config.getOrElse("online-mode", true); Boolean announceForge = config.getOrElse("announce-forge", true); diff --git a/proxy/src/main/resources/default-velocity.toml b/proxy/src/main/resources/default-velocity.toml index 050b9c1fe..fe57acad7 100644 --- a/proxy/src/main/resources/default-velocity.toml +++ b/proxy/src/main/resources/default-velocity.toml @@ -6,7 +6,7 @@ bind = "0.0.0.0:25577" # 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. -motd = "&3A Velocity Server" +motd = "&3#09add3A Velocity Server" # What should we display for the maximum number of players? (Velocity does not support a cap # on the number of players online.)