equals is not a real word

This commit is contained in:
Aubri Seebauer committed 2023-04-29 14:27:46 -04:00
1 parent e9f2786743
commit 879145b433
9 files changed
+112 -136

No files matched your search

@@ -36,7 +36,7 @@ public class RaidData {
*/
public static Raid getRaidOrNull(String name) {
for (Raid raid : raids) {
if (raid.getName().equals(name)) return raid;
if (raid.getName().equalsIgnoreCase(name)) return raid;
}
return null;
}
@@ -248,7 +248,7 @@ public class RaidData {
}
//6 hour raid cooldown for war
if ((System.currentTimeMillis() / 1000) - (side.equals(war.getSide1()) ? war.getLastRaidTimeSide1() : war.getLastRaidTimeSide2()) <= 21600) {
if ((System.currentTimeMillis() / 1000) - (side.equalsIgnoreCase(war.getSide1()) ? war.getLastRaidTimeSide1() : war.getLastRaidTimeSide2()) <= 21600) {
return 0;
}
@@ -263,7 +263,7 @@ public class RaidData {
//check if being raided
for (Raid raid : war.getRaids()) {
if (raid.getRaidedTown().getName().equals(town.getName())) {
if (raid.getRaidedTown().getName().equalsIgnoreCase(town.getName())) {
return 1;
}