refactor: remove useless / in tab complete command

minecraft code:
```
if (stringReader.canRead() && stringReader.peek() == '/') {
	stringReader.skip();
}
```
i also removed `minecraft:` in the vanish detection tab complete, this should not break anything on kaboom servers
This commit is contained in:
ChomeNS
2025-03-18 17:05:49 +07:00
parent 670c678ced
commit f882c15d39
3 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ public class PlayersPlugin extends Bot.Listener {
if (!bot.loggedIn || tabCompleteQueue.isEmpty()) return;
final CompletableFuture<ClientboundCommandSuggestionsPacket> future = bot.tabComplete.tabComplete(
"/minecraft:scoreboard players add "
"scoreboard players add "
);
if (future == null) return;

View File

@@ -26,7 +26,7 @@ public class ServerPluginsManagerPlugin extends Bot.Listener {
@Override
public void connected (ConnectedEvent event) {
final CompletableFuture<ClientboundCommandSuggestionsPacket> future = bot.tabComplete.tabComplete("/ver ");
final CompletableFuture<ClientboundCommandSuggestionsPacket> future = bot.tabComplete.tabComplete("ver ");
future.thenApplyAsync((packet) -> {
final String[] matches = packet.getMatches();