Skip to content

Commit

Permalink
Fix two nation command tab complete exceptions (#7158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored Jan 3, 2024
1 parent 425bff0 commit e791331
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ else if (args.length == 3)
if (args.length == 3) {
return Collections.singletonList("-ignore");
}
break;
case "sanctiontown":
if (nation == null)
break;
if (args.length == 2)
return NameUtil.filterByStart(Arrays.asList("add", "remove", "list"), args[1]);
if (args.length == 3 && args[1].equalsIgnoreCase("add") || args[1].equalsIgnoreCase("remove"))
Expand Down

0 comments on commit e791331

Please sign in to comment.