From 9af6829688431fa7234fef64634ff38584d5e7d1 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 10 Aug 2018 03:05:59 -0400 Subject: [PATCH] Fix sending commands to remote server. --- .../proxy/connection/client/ClientPlaySessionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java index 7aa02bd6a..06579a162 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java @@ -82,7 +82,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler { if (msg.startsWith("/")) { try { if (!VelocityServer.getServer().getCommandManager().execute(player, msg.substring(1))) { - player.getConnectedServer().getMinecraftConnection().write(msg); + player.getConnectedServer().getMinecraftConnection().write(chat); } } catch (Exception e) { logger.info("Exception occurred while running command for {}", player.getProfile().getName(), e);