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:
Ursprung
d3d683dfc0
Commit
6e37fa5f33
@ -386,7 +386,8 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
|
|||||||
|
|
||||||
public void handleTabCompleteResponse(TabCompleteResponse response) {
|
public void handleTabCompleteResponse(TabCompleteResponse response) {
|
||||||
if (outstandingTabComplete != null) {
|
if (outstandingTabComplete != null) {
|
||||||
if (!outstandingTabComplete.isAssumeCommand()) {
|
if (!outstandingTabComplete.isAssumeCommand()
|
||||||
|
&& outstandingTabComplete.getCommand().startsWith("/")) {
|
||||||
String command = outstandingTabComplete.getCommand().substring(1);
|
String command = outstandingTabComplete.getCommand().substring(1);
|
||||||
try {
|
try {
|
||||||
response.getOffers().addAll(server.getCommandManager().offerSuggestions(player, command));
|
response.getOffers().addAll(server.getCommandManager().offerSuggestions(player, command));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren