mirror of
https://github.com/Shiewk/SModeration.git
synced 2026-04-28 05:54:16 +02:00
Fixed buggy tab completion
This commit is contained in:
@@ -79,7 +79,11 @@ public class MuteCommand implements CommandExecutor, TabCompleter {
|
||||
} else {
|
||||
for (int i = 1; i < args.length; i++) {
|
||||
if (TimeUtil.parseDurationMillisSafely(args[i]) == -1){
|
||||
return List.of();
|
||||
try {
|
||||
Long.parseLong(args[i]);
|
||||
} catch (NumberFormatException ignored){
|
||||
return List.of();
|
||||
}
|
||||
}
|
||||
}
|
||||
return List.of(
|
||||
|
||||
Reference in New Issue
Block a user