From 6e37fa5f337023d87c8475ac73607e975f013bbc Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 30 Nov 2018 19:14:51 -0500 Subject: [PATCH] When handling TabCompleteResponse, check if we have a command. Fixes #154 --- .../proxy/connection/client/ClientPlaySessionHandler.java | 3 ++- 1 file changed, 2 insertions(+), 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 582458417..7e3e15772 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 @@ -386,7 +386,8 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler { public void handleTabCompleteResponse(TabCompleteResponse response) { if (outstandingTabComplete != null) { - if (!outstandingTabComplete.isAssumeCommand()) { + if (!outstandingTabComplete.isAssumeCommand() + && outstandingTabComplete.getCommand().startsWith("/")) { String command = outstandingTabComplete.getCommand().substring(1); try { response.getOffers().addAll(server.getCommandManager().offerSuggestions(player, command));