Sorted /talgive amount

This commit is contained in:
Auxilor
2021-04-03 22:17:33 +01:00
parent 2c49102996
commit 2aa3ef4cd0

View File

@@ -85,6 +85,12 @@ public class TabcompleterTalgive extends AbstractTabCompleter {
if (args.size() == 3) {
StringUtil.copyPartialMatches(args.get(2), NUMBERS, completions);
completions.sort((s1, s2) -> {
int t1 = Integer.parseInt(s1);
int t2 = Integer.parseInt(s2);
return t1 - t2;
});
return completions;
}