Refactor WOO change timer mechanics to use the same system as the mine claims. Moved both resets to the hourly job.

This commit is contained in:
MagicBot committed 2023-01-21 08:18:40 -05:00
1 parent de41702914
commit 6a1b461735
5 files changed
+1133 -1150

No files matched your search

@@ -115,13 +115,6 @@ public class dbGuildHandler extends dbHandlerBase {
return outputStr;
}
public boolean SET_LAST_WOO_UPDATE(Guild guild, LocalDateTime lastEditTime) {
prepareCallable("UPDATE `obj_guild` SET `lastWooEditTime`=? WHERE `UID`=?");
setLocalDateTime(1, lastEditTime);
setLong(2, (long) guild.getObjectUUID());
return (executeUpdate() > 0);
}
public ArrayList<Guild> GET_GUILD_ALLIES(final int id) {
prepareCallable("SELECT g.* FROM `obj_guild` g, `dyn_guild_allianceenemylist` l "
+ "WHERE l.isAlliance = 1 && l.OtherGuildID = g.UID && l.GuildID=?");