mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 14:38:56 +00:00
raid purges self on completion, polishes
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user