mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-27 03:28:30 +01:00
Only afk people, if they have essentials.afk permission.
This commit is contained in:
parent
4a52cd7c98
commit
c6e68f72ea
@ -460,7 +460,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
final long autoafk = ess.getSettings().getAutoAfk();
|
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);
|
setAfk(true);
|
||||||
if (!isHidden()) {
|
if (!isHidden()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user