From ff39c63f8301e92599921fc68a23fa9f78ddcd0f Mon Sep 17 00:00:00 2001 From: ementalo Date: Fri, 20 Jul 2012 16:39:45 +0100 Subject: [PATCH] Be careful with getUser vs matchUser --- Essentials/src/net/ess3/commands/Commandafk.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/net/ess3/commands/Commandafk.java b/Essentials/src/net/ess3/commands/Commandafk.java index a04fbf8b4..5da1cfaca 100644 --- a/Essentials/src/net/ess3/commands/Commandafk.java +++ b/Essentials/src/net/ess3/commands/Commandafk.java @@ -12,7 +12,7 @@ public class Commandafk extends EssentialsCommand { if (args.length > 0 && Permissions.AFK_OTHERS.isAuthorized(user)) { - IUser afkUser = ess.getUserMap().getUser(args[0]); + IUser afkUser = ess.getUserMap().matchUser(args[0], false, true); if (afkUser != null) { toggleAfk(afkUser);