diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-01 10:52:41 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-01 10:52:41 +0000 |
commit | 86e40db6b9babfae520b61c5fc43c27e55ac8a0a (patch) | |
tree | db009fc5237f8793075428c9f2e6c760d8f55c37 | |
parent | 117d938ac566f63d00e3f71b404fef9b99640dc5 (diff) | |
download | Essentials-86e40db6b9babfae520b61c5fc43c27e55ac8a0a.tar Essentials-86e40db6b9babfae520b61c5fc43c27e55ac8a0a.tar.gz Essentials-86e40db6b9babfae520b61c5fc43c27e55ac8a0a.tar.lz Essentials-86e40db6b9babfae520b61c5fc43c27e55ac8a0a.tar.xz Essentials-86e40db6b9babfae520b61c5fc43c27e55ac8a0a.zip |
Several bug fixes and cleanup.
Found using PMD and FindBugs.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1554 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 1d40f44d2..7531c03f5 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -345,7 +345,7 @@ public class Essentials extends JavaPlugin implements IEssentials public boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath) { - if ("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase()) && sender instanceof CraftPlayer) + if (("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase())) && sender instanceof Player) { StringBuilder str = new StringBuilder(); str.append(commandLabel).append(" "); |