mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
Townblock Looting
This commit is contained in:
1 parent
2dec08df80
commit
77c458fb4a
3 files changed
+138
-5
No files matched your search
@@ -40,10 +40,10 @@ public class RaidTabCompletion implements TabCompleter {
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("stop") || args[0].equalsIgnoreCase("abandon")) {
|
||||
} else if (args[0].equalsIgnoreCase("stop")) {
|
||||
if (!RaidData.getRaids().isEmpty()) {
|
||||
for (Raid raid : RaidCommands.raids) {
|
||||
completions.add(String.valueOf(raid.getID()));
|
||||
for (Raid raid : RaidData.getRaids()) {
|
||||
completions.add(String.valueOf(raid.getName()));
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
@@ -54,6 +54,13 @@ public class RaidTabCompletion implements TabCompleter {
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("abandon")) {
|
||||
if (!WarData.getWars().isEmpty()) {
|
||||
for (War war : WarData.getWars()) {
|
||||
completions.add(war.getName());
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("leave")) {
|
||||
if (!WarData.getWars().isEmpty()) {
|
||||
for (War war : WarData.getWars()) {
|
||||
@@ -77,6 +84,13 @@ public class RaidTabCompletion implements TabCompleter {
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("abandon")) {
|
||||
if (!TownyAPI.getInstance().getTowns().isEmpty()) {
|
||||
for (Town town : TownyAPI.getInstance().getTowns()) {
|
||||
completions.add(town.getName());
|
||||
}
|
||||
return completions;
|
||||
}
|
||||
} else if (args[0].equalsIgnoreCase("leave")) {
|
||||
if (!TownyAPI.getInstance().getTowns().isEmpty()) {
|
||||
for (Town town : TownyAPI.getInstance().getTowns()) {
|
||||
|
||||
Reference in new issue
Block a user