Add various chat related checks

This commit is contained in:
SilicaAndPina 2021-04-05 11:51:08 +12:00
parent 2e4ba0b82d
commit 5fc313657d
8 changed files with 114 additions and 3 deletions

View file

@ -47,6 +47,7 @@ namespace HISP.Server
private int warnInterval = GameServer.IdleWarning * 60 * 1000;
private int kickInterval = GameServer.IdleTimeout * 60 * 1000;
private bool dcLock = false;
private void minuteTimerTick(object state)
@ -55,7 +56,14 @@ namespace HISP.Server
totalMinutesElapsed++;
if (LoggedIn)
{
LoggedinUser.CanUseAdsChat = true;
LoggedinUser.FreeMinutes -= 1;
if(totalMinutesElapsed % 2 == 0)
{
LoggedinUser.TotalGlobalChatMessages++;
}
if (LoggedinUser.FreeMinutes <= 0)
{
LoggedinUser.FreeMinutes = 0;