1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-01-18 21:58:00 +01:00

Only afk people, if they have essentials.afk permission.

This commit is contained in:
snowleo 2011-09-29 23:54:48 +02:00
parent 469e484f06
commit 1011475bf0

View File

@ -460,7 +460,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
}
}
final long autoafk = ess.getSettings().getAutoAfk();
if (!isAfk() && autoafk > 0 && lastActivity + autoafk * 1000 < System.currentTimeMillis())
if (!isAfk() && autoafk > 0 && lastActivity + autoafk * 1000 < System.currentTimeMillis() && isAuthorized("essentials.afk"))
{
setAfk(true);
if (!isHidden()) {