mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
Added create, join and logging joins.
(cherry picked from commit 4ed964e292)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user