raid purges self on completion, polishes

This commit is contained in:
Aubri Seebauer committed 2023-04-20 20:45:38 -04:00
1 parent 40061cf40a
commit 6586d92046
7 files changed
+104 -114

No files matched your search

@@ -129,6 +129,14 @@ public class RaidCommands implements CommandExecutor {
//if this is run as admin, shift our check forward a slot
if (raidedTown.getName().equalsIgnoreCase(args[2 + (admin ? 1 : 0)]) && gatherTown != null) {
//check if the town were attempting to raid is in the war
if(!war.getSide1Towns().contains(raidedTown.getName()) && !war.getSide2Towns().contains(raidedTown.getName())) {
if (admin) p.sendMessage(String.valueOf(Helper.Chatlabel()) + "The town you are trying to raid is not part of the war!");
raidOwner.sendMessage(String.valueOf(Helper.Chatlabel()) + "The town you are trying to raid is not part of the war!");
return;
}
townExists = true;
Raid raid2;