Added create, join and logging joins.

(cherry picked from commit 4ed964e292)
This commit is contained in:
Isaac authored and Aubri Seebauer committed 2023-04-09 21:12:21 -04:00
1 parent dadf7aa0c8
commit c46eb60e7d
3 files changed
+100 -242

No files matched your search

@@ -60,12 +60,15 @@ public class War {
if (side1.equalsIgnoreCase(side)) {
if (!side1Towns.contains(town)) {
side1Towns.add(town);
Main.warLogger.log("Town "+ town + " joined " + this.name + " on " + side);
}
} else if(side2.equalsIgnoreCase(side)) {
if (!side2Towns.contains(town)) {
side2Towns.add(town);
Main.warLogger.log("Town "+ town + " joined " + this.name + " on " + side);
}
}
Main.warLogger.log("Town "+ town + " failed to join " + this.name + " on " + side);
}
/**