From 4f23e8aaebf77e6d4503b1f5ee18e632da7d4d42 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Tue, 19 Jun 2012 08:59:26 +0100 Subject: [PATCH] Patch to allow plugins to use ignore lookup, without updating their own code. --- Essentials/src/com/earth2me/essentials/UserData.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/UserData.java b/Essentials/src/com/earth2me/essentials/UserData.java index e48ec7b50..3835905e6 100644 --- a/Essentials/src/com/earth2me/essentials/UserData.java +++ b/Essentials/src/com/earth2me/essentials/UserData.java @@ -457,6 +457,13 @@ public abstract class UserData extends PlayerExtension implements IConf } config.save(); } + + @Deprecated + public boolean isIgnoredPlayer(final String userName) + { + final IUser user = ess.getUser(userName); + return (ignoredPlayers.contains(user.getName().toLowerCase(Locale.ENGLISH)) && !user.isAuthorized("essentials.chat.ignoreexempt")); + } public boolean isIgnoredPlayer(IUser user) {