mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 22:16:00 +00:00
tons of little issues with admin commands. tweaks and bugfixes galore!
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user