diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-20 16:43:41 -0700 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-20 16:43:41 -0700 |
commit | b8e41df0f6707846bcb8d25ee68a35b0024478ec (patch) | |
tree | 805625ef39372d3a6ff5c200e1795d34ebe5001c /EssentialsChat/src/com | |
parent | 8b41219fccd1276b419f4a9c3ab42e258279c2d8 (diff) | |
parent | 602517473d47971bc80a34620f1ad56af66e28a3 (diff) | |
download | Essentials-b8e41df0f6707846bcb8d25ee68a35b0024478ec.tar Essentials-b8e41df0f6707846bcb8d25ee68a35b0024478ec.tar.gz Essentials-b8e41df0f6707846bcb8d25ee68a35b0024478ec.tar.lz Essentials-b8e41df0f6707846bcb8d25ee68a35b0024478ec.tar.xz Essentials-b8e41df0f6707846bcb8d25ee68a35b0024478ec.zip |
Merge pull request #16 from Brettflan/master
Fix for local chat, leftover Factions cleanup
Diffstat (limited to 'EssentialsChat/src/com')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java | 3 | ||||
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java index 4807ada0f..20b3756d0 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java @@ -22,8 +22,7 @@ public class EssentialsChat extends JavaPlugin final PluginManager pluginManager = getServer().getPluginManager(); final IEssentials ess = (IEssentials)pluginManager.getPlugin("Essentials"); - chatListener = new HashMap<String, IEssentialsChatListener>(); - //EssentialsChatPlayerListener.checkFactions(pluginManager); + chatListener = new HashMap<String, IEssentialsChatListener>(); final EssentialsChatPlayerListener playerListener = new EssentialsChatPlayerListener(getServer(), ess, chatListener); pluginManager.registerEvent(Type.PLAYER_CHAT, playerListener, Priority.Highest, this); diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java index b38073909..c4874d631 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java @@ -100,7 +100,7 @@ public class EssentialsChatPlayerListener extends PlayerListener { continue; } - if (u.equals(user) && !u.isAuthorized("essentials.chat.spy")) + if (!u.equals(user) && !u.isAuthorized("essentials.chat.spy")) { final Location l = u.getLocation(); final int dx = Math.abs(x - l.getBlockX()); |