mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-29 17:29:56 +02:00
Be careful with getUser vs matchUser
This commit is contained in:
@@ -12,7 +12,7 @@ public class Commandafk extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
if (args.length > 0 && Permissions.AFK_OTHERS.isAuthorized(user))
|
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)
|
if (afkUser != null)
|
||||||
{
|
{
|
||||||
toggleAfk(afkUser);
|
toggleAfk(afkUser);
|
||||||
|
Reference in New Issue
Block a user