summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-06-19 08:59:26 +0100
committerKHobbits <rob@khobbits.co.uk>2012-06-19 08:59:26 +0100
commit4f23e8aaebf77e6d4503b1f5ee18e632da7d4d42 (patch)
tree809778a1c9c3b2b2d8c0b0ef7fe664658a8ef39d
parentaea2c00a9593ed02c8142a9d65bc87114d97d301 (diff)
downloadEssentials-4f23e8aaebf77e6d4503b1f5ee18e632da7d4d42.tar
Essentials-4f23e8aaebf77e6d4503b1f5ee18e632da7d4d42.tar.gz
Essentials-4f23e8aaebf77e6d4503b1f5ee18e632da7d4d42.tar.lz
Essentials-4f23e8aaebf77e6d4503b1f5ee18e632da7d4d42.tar.xz
Essentials-4f23e8aaebf77e6d4503b1f5ee18e632da7d4d42.zip
Patch to allow plugins to use ignore lookup, without updating their own code.
-rw-r--r--Essentials/src/com/earth2me/essentials/UserData.java7
1 files changed, 7 insertions, 0 deletions
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)
{