mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-24 16:32:35 +01:00
[fix] trying to AFK others should work now
This commit is contained in:
parent
8bc01910fc
commit
bb74656a96
@ -17,12 +17,9 @@ public class Commandafk extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
if (args.length > 0 && user.isAuthorized("essentials.afk.others"))
|
if (args.length > 0 && user.isAuthorized("essentials.afk.others"))
|
||||||
{
|
{
|
||||||
User afkUser = ess.getUser(ess.getServer().matchPlayer(args[0]));
|
User afkUser = getPlayer(server, args, 0);
|
||||||
if (afkUser != null)
|
|
||||||
{
|
|
||||||
toggleAfk(afkUser);
|
toggleAfk(afkUser);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
toggleAfk(user);
|
toggleAfk(user);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user