tons of little issues with admin commands. tweaks and bugfixes galore!

This commit is contained in:
Aubri Seebauer committed 2023-04-23 15:21:17 -04:00
1 parent d858c193db
commit 0b2dbbc473
4 files changed
+110 -92

No files matched your search

@@ -66,15 +66,11 @@ public class CommandHelper {
public static List<String> getTownyNations() {
List<String> out = new ArrayList<>();
for (Town t : TownyAPI.getInstance().getTowns()) {
try {
Nation n = t.getNation();
if(n != null) {
if(!out.contains(n.getName())) {
out.add(n.getName());
}
Nation n = t.getNationOrNull();
if(n != null) {
if(!out.contains(n.getName())) {
out.add(n.getName());
}
} catch (NotRegisteredException e) {
throw new RuntimeException(e);
}
}
return out;