Skip to content

Commit

Permalink
Fix npe when player without town tab completes /t outpost (TownyAdvan…
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored Aug 31, 2024
1 parent eca063c commit 6f943b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
break;
case "outpost":
if (args.length == 2) {
List<String> outpostNames = town.getOutpostNames();
List<String> outpostNames = town == null ? new ArrayList<>() : town.getOutpostNames();
outpostNames.add("list");
return NameUtil.filterByStart(outpostNames, args[1]);
}
Expand Down

0 comments on commit 6f943b2

Please sign in to comment.