From 0ddadc90e268bdf17578677cd6b3921c4fb69152 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 18 May 2021 12:09:30 -0400 Subject: [PATCH] Demonize legacy formatting completely. Velocity has always supported components from day 1. It's time to officially frown upon legacy formatting for good. --- proxy/src/main/java/com/velocitypowered/proxy/Velocity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java b/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java index 2206ed6a6..0df242a01 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/Velocity.java @@ -29,6 +29,8 @@ public class Velocity { static { System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager"); + System.setProperty("net.kyori.adventure.text.warnWhenLegacyFormattingDetected", "true"); + logger = LogManager.getLogger(Velocity.class); // By default, Netty allocates 16MiB arenas for the PooledByteBufAllocator. This is too much