mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-04 14:38:57 +00:00
Minutemen not counted as players of a side during a raid or war
This commit is contained in:
1 parent
d5bf05e0ec
commit
54ef115792
1 file changed
+4
@@ -8,6 +8,7 @@ import com.palmergames.bukkit.towny.object.Nation;
|
|||||||
import com.palmergames.bukkit.towny.object.Resident;
|
import com.palmergames.bukkit.towny.object.Resident;
|
||||||
import com.palmergames.bukkit.towny.object.Town;
|
import com.palmergames.bukkit.towny.object.Town;
|
||||||
|
|
||||||
|
import me.ShermansWorld.AlathraWar.commands.CommandHelper;
|
||||||
import me.ShermansWorld.AlathraWar.data.DataManager;
|
import me.ShermansWorld.AlathraWar.data.DataManager;
|
||||||
import me.ShermansWorld.AlathraWar.data.WarData;
|
import me.ShermansWorld.AlathraWar.data.WarData;
|
||||||
|
|
||||||
@@ -242,10 +243,13 @@ public class War {
|
|||||||
Town town = TownyAPI.getInstance().getTown(townString);
|
Town town = TownyAPI.getInstance().getTown(townString);
|
||||||
if (town != null) {
|
if (town != null) {
|
||||||
for (Resident res : town.getResidents()) {
|
for (Resident res : town.getResidents()) {
|
||||||
|
//Minuteman countermeasure!
|
||||||
|
if (System.currentTimeMillis() - CommandHelper.getPlayerJoinDate(res.getName()) > 86400000L * Main.getInstance().getConfig().getInt("minimumPlayerAge") ) {
|
||||||
returnList.add(res.getName());
|
returnList.add(res.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return returnList;
|
return returnList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user