mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 14:38:56 +00:00
Minuteman updates to include playtime clause
This commit is contained in:
1 parent
392ff18aaa
commit
a01b7e909d
6 files changed
+119
-80
No files matched your search
@@ -245,8 +245,8 @@ public class War {
|
||||
Town town = TownyAPI.getInstance().getTown(townString);
|
||||
if (town != null) {
|
||||
for (Resident res : town.getResidents()) {
|
||||
//Minuteman countermeasure!
|
||||
if (System.currentTimeMillis() - CommandHelper.getPlayerJoinDate(res.getName()) > 86400000L * Main.getInstance().getConfig().getInt("minimumPlayerAge") ) {
|
||||
//Minuteman countermeasure! if they are they get skipped
|
||||
if (CommandHelper.isPlayerMinuteman(res.getName()) == 0) {
|
||||
returnList.add(res.getName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user