@ -23,6 +25,8 @@ public class UniqueUpdater extends BaseUpdater{
privatefinalStringquery_month="SELECT DISTINCT `account_id` FROM `%s`.`user_connections` WHERE `connection_type` LIKE \"disconnect\" AND `connect_duration` > 300 AND `timestamp` > CAST(DATE_FORMAT(NOW() ,'%%Y-%%m-01') as DATE) UNION\n";
privatefinalStringquery_year="SELECT DISTINCT `account_id` FROM `%s`.`user_connections` WHERE `connection_type` LIKE \"disconnect\" AND `connect_duration` > 300 AND `timestamp` > CAST(DATE_FORMAT(NOW() ,'%%Y-01-01') as DATE) UNION\n";
logger.info("Update current active VIP profiles");
stats.setVip_players(
(Long)entityManager.createNativeQuery("SELECT COUNT(*) as count FROM `sm_admins` WHERE `status` LIKE 'VIP' AND (`comment` LIKE 'Donate.User' OR `comment` LIKE 'f13bot.User')")
.getSingleResult());
@ -43,6 +49,7 @@ public class VipCountUpdater extends BaseUpdater{
}
publicbooleanUpdateFreeVIPCount(){
logger.info("Update current active FreeVIP profiles");
stats.setFreevip_players(
(Long)entityManager.createNativeQuery("SELECT COUNT(*) as count FROM `sm_admins` WHERE `status` LIKE 'VIP' AND `comment` LIKE 'f13bot.FreeVIP'")