Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Fixed permission afk.prevent
Browse files Browse the repository at this point in the history
  • Loading branch information
Freenex1911 committed Nov 13, 2015
1 parent 5806cd5 commit 768c2cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions EasyAFK.cs
Expand Up @@ -103,6 +103,8 @@ protected override void Unload()

private void playerCheckAFK(UnturnedPlayer player)
{
if (player.HasPermission("afk.prevent")) { return; }

try
{
if (DateTime.Now.Subtract(dicLastActivity[player.SteamName]).TotalSeconds >= (Configuration.Instance.afkSeconds))
Expand Down

0 comments on commit 768c2cf

Please sign in to comment.