1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 20:41:37 +02:00

[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
This commit is contained in:
ementalo
2011-05-16 19:59:23 +00:00
parent 4c52cefcb0
commit 80f6c58dad

View File

@@ -14,6 +14,7 @@ import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor; import org.yaml.snakeyaml.constructor.SafeConstructor;
import com.earth2me.essentials.User; import com.earth2me.essentials.User;
import com.earth2me.essentials.Util; import com.earth2me.essentials.Util;
import java.util.logging.Level;
public class Commandhelp extends EssentialsCommand public class Commandhelp extends EssentialsCommand
@@ -79,6 +80,7 @@ public class Commandhelp extends EssentialsCommand
} }
boolean reported = false; boolean reported = false;
String pluginName = "";
for (Plugin p : ess.getServer().getPluginManager().getPlugins()) for (Plugin p : ess.getServer().getPluginManager().getPlugins())
{ {
try try
@@ -100,6 +102,7 @@ public class Commandhelp extends EssentialsCommand
{ {
if (ess.getSettings().showNonEssCommandsInHelp()) if (ess.getSettings().showNonEssCommandsInHelp())
{ {
pluginName = p.getDescription().getName();
HashMap<String, String> v = cmds.get(k); HashMap<String, String> v = cmds.get(k);
if (v.containsKey("permission") && v.get("permission") != null && !(v.get("permission").equals(""))) if (v.containsKey("permission") && v.get("permission") != null && !(v.get("permission").equals("")))
{ {
@@ -125,7 +128,10 @@ public class Commandhelp extends EssentialsCommand
{ {
if (!reported) if (!reported)
{ {
logger.log(Level.WARNING, "Error getting help for:" + pluginName);
ex.printStackTrace(); ex.printStackTrace();
} }
reported = true; reported = true;
continue; continue;