mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +00:00
Merge pull request #383 from necrodoom/patch-73
[fix] trying to AFK others should work now
This commit is contained in:
commit
fa445790e7
1 changed files with 2 additions and 5 deletions
|
@ -17,11 +17,8 @@ public class Commandafk extends EssentialsCommand
|
|||
{
|
||||
if (args.length > 0 && user.isAuthorized("essentials.afk.others"))
|
||||
{
|
||||
User afkUser = ess.getUser(ess.getServer().matchPlayer(args[0]));
|
||||
if (afkUser != null)
|
||||
{
|
||||
toggleAfk(afkUser);
|
||||
}
|
||||
User afkUser = getPlayer(server, args, 0);
|
||||
toggleAfk(afkUser);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue