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:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user