Fix ending

This commit is contained in:
Aubri Seebauer committed 2023-04-26 18:58:21 -04:00
1 parent 889c79e46a
commit 7fb5494885
5 files changed
+33 -3

No files matched your search

@@ -44,8 +44,11 @@ public class RaidTabCompletion implements TabCompleter {
if (args.length > 0) {
if(args.length > 1) {
switch (args[0]) {
case "abandon", "join", "leave", "start" -> {
case "abandon", "join", "leave", "start", "stop" -> {
if (args.length > 2) {
if (args.length > 3) {
return Collections.emptyList();
}
return NameUtil.filterByStart(CommandHelper.getTownyWarTowns(args[1]), args[2]);
} else {
return NameUtil.filterByStart(CommandHelper.getWarNames(), args[1]);