mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
refactor: wip update 2
This commit is contained in:
26 files changed
+1918
-654
No files matched your search
@@ -36,6 +36,32 @@ public class CommandHelper {
|
||||
return out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Grabs list of all sieges
|
||||
*
|
||||
* @return list of wars
|
||||
*/
|
||||
public static List<String> getSieges() {
|
||||
List<String> out = new ArrayList<>();
|
||||
for (Siege s : SiegeData.getSieges()) {
|
||||
out.add(s.getName());
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Grabs list of all raids
|
||||
*
|
||||
* @return list of wars
|
||||
*/
|
||||
public static List<String> getRaids() {
|
||||
List<String> out = new ArrayList<>();
|
||||
for (Raid r : RaidData.getRaids()) {
|
||||
out.add(r.getName());
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Grabs first matching war and lists the sides
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user