fixed tabcomplete on mute command

This commit is contained in:
Elias Müller 2025-02-01 23:01:48 +01:00
parent c56f318f1c
commit bd630ebb7a

View File

@ -27,7 +27,7 @@ public class MuteCommand extends ApplianceCommand<ChatMute> {
@Override @Override
public @Nullable List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) { public @Nullable List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
if(args.length == 1) { if(args.length == 2) {
return List.of("1", "2", "4", "8", "24", "48"); return List.of("1", "2", "4", "8", "24", "48");
} }
return null; return null;