3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

When handling TabCompleteResponse, check if we have a command.

Fixes #154
Dieser Commit ist enthalten in:
Andrew Steinborn 2018-11-30 19:14:51 -05:00
Ursprung d3d683dfc0
Commit 6e37fa5f33

Datei anzeigen

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