Minuteman updates to include playtime clause

This commit is contained in:
Aubri Seebauer committed 2023-05-02 13:55:16 -04:00
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());
}
}