afk system

This commit is contained in:
hydrant
2021-04-13 20:32:20 +02:00
parent b981819b52
commit 62ac08e98d
7 changed files with 76 additions and 2 deletions

View File

@@ -189,6 +189,11 @@ namespace ReallifeGamemode.Server.Finance
using var dbContext = new DatabaseContext();
foreach (var player in NAPI.Pools.GetAllPlayers().Where(p => p.IsLoggedIn()))
{
if(player.IsAfk())
{
continue;
}
User user = player.GetUser(dbContext);
if(user == null)
{