summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-16 19:59:23 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-16 19:59:23 +0000
commit80f6c58dad107e41669f9c0117c36e3389accc7d (patch)
tree427e7a6b33c22bd595d4b108270fe6bdc7740a72
parent4c52cefcb05233fc4d0f4934f5596110e328af36 (diff)
downloadEssentials-80f6c58dad107e41669f9c0117c36e3389accc7d.tar
Essentials-80f6c58dad107e41669f9c0117c36e3389accc7d.tar.gz
Essentials-80f6c58dad107e41669f9c0117c36e3389accc7d.tar.lz
Essentials-80f6c58dad107e41669f9c0117c36e3389accc7d.tar.xz
Essentials-80f6c58dad107e41669f9c0117c36e3389accc7d.zip
[trunk] debug a error when processing help permissions nodes
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1502 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhelp.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
index dcc8a15ec..31ae0f395 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
@@ -14,6 +14,7 @@ import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;
import com.earth2me.essentials.User;
import com.earth2me.essentials.Util;
+import java.util.logging.Level;
public class Commandhelp extends EssentialsCommand
@@ -79,6 +80,7 @@ public class Commandhelp extends EssentialsCommand
}
boolean reported = false;
+ String pluginName = "";
for (Plugin p : ess.getServer().getPluginManager().getPlugins())
{
try
@@ -100,6 +102,7 @@ public class Commandhelp extends EssentialsCommand
{
if (ess.getSettings().showNonEssCommandsInHelp())
{
+ pluginName = p.getDescription().getName();
HashMap<String, String> v = cmds.get(k);
if (v.containsKey("permission") && v.get("permission") != null && !(v.get("permission").equals("")))
{
@@ -125,7 +128,10 @@ public class Commandhelp extends EssentialsCommand
{
if (!reported)
{
+ logger.log(Level.WARNING, "Error getting help for:" + pluginName);
ex.printStackTrace();
+
+
}
reported = true;
continue;