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

@@ -13,5 +13,15 @@ namespace ReallifeGamemode.Server.Events
{
player.SafeTeleport(pos);
}
[RemoteEvent("CLIENT:SetAfkStatus")]
public void SetPlayerAfkStatus(Player player, bool status)
{
player.SetServerData("isAfk", status);
if(status)
{
player.SendNotification("Du wurdest ~b~AFK~s~ gesetzt", true);
}
}
}
}