2
0
mirror of https://github.com/PaperMC/Velocity.git synced 2025-03-19 16:10:25 +08:00

Fix sending commands to remote server.

This commit is contained in:
Andrew Steinborn 2018-08-10 03:05:59 -04:00
parent 58e072ab94
commit 9af6829688

@ -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);