1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

[fix] trying to AFK others should work now

This commit is contained in:
Necrodoom
2013-03-11 15:36:12 +02:00
parent 895c14430a
commit e68035cc7a

View File

@@ -17,11 +17,8 @@ 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
{ {