mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-10-02 06:44:39 +00: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:
parent
4c52cefcb0
commit
80f6c58dad
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue