From fe1ba5ba5cf66dc1c0b0528b9fce184ca4ddd319 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Mon, 5 Jul 2021 21:07:13 -0400 Subject: [PATCH] Support Velocity 3.0.0 by default --- bootstrap/velocity/pom.xml | 2 +- .../platform/velocity/command/VelocityCommandSender.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/velocity/pom.xml b/bootstrap/velocity/pom.xml index 0190d128e..f300bd2be 100644 --- a/bootstrap/velocity/pom.xml +++ b/bootstrap/velocity/pom.xml @@ -20,7 +20,7 @@ com.velocitypowered velocity-api - 1.1.0 + 3.0.0-SNAPSHOT provided diff --git a/bootstrap/velocity/src/main/java/org/geysermc/platform/velocity/command/VelocityCommandSender.java b/bootstrap/velocity/src/main/java/org/geysermc/platform/velocity/command/VelocityCommandSender.java index 8f7d98b80..21069acbb 100644 --- a/bootstrap/velocity/src/main/java/org/geysermc/platform/velocity/command/VelocityCommandSender.java +++ b/bootstrap/velocity/src/main/java/org/geysermc/platform/velocity/command/VelocityCommandSender.java @@ -28,7 +28,7 @@ package org.geysermc.platform.velocity.command; import com.velocitypowered.api.command.CommandSource; import com.velocitypowered.api.proxy.ConsoleCommandSource; import com.velocitypowered.api.proxy.Player; -import net.kyori.text.TextComponent; +import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; import org.geysermc.connector.command.CommandSender; import org.geysermc.connector.utils.LanguageUtils; @@ -56,7 +56,7 @@ public class VelocityCommandSender implements CommandSender { @Override public void sendMessage(String message) { - handle.sendMessage(TextComponent.of(message)); + handle.sendMessage(LegacyComponentSerializer.legacy('ยง').deserialize(message)); } @Override