Potential fix for NPE with Citizens

Work on #13
This commit is contained in:
William278 committed 2021-03-26 16:59:34 +00:00
1 parent 9027c54bcd
commit d688ef3472
7 files changed
+67 -46

No files matched your search

@@ -89,7 +89,9 @@ public class TpCommand extends CommandBase {
players.add(p.getName());
}
}
players.addAll(CrossServerListHandler.getOtherServerPlayerList());
if (HuskHomes.getSettings().doBungee() & HuskHomes.getSettings().doCrossServerTabCompletion()) {
players.addAll(CrossServerListHandler.getOtherServerPlayerList());
}
}
final List<String> tabCompletions = new ArrayList<>();
StringUtil.copyPartialMatches(args[0], players, tabCompletions);