1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 02:59:06 +02:00

[trunk] Less spam on command errors by default

Added new debug setting to config.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1236 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-04-16 23:18:00 +00:00
parent 9108906090
commit d31d439592
3 changed files with 10 additions and 1 deletions

View File

@@ -572,7 +572,9 @@ public class Essentials extends JavaPlugin
catch (Throwable ex)
{
sender.sendMessage(ChatColor.RED + "Error: " + ex.getMessage());
logger.log(Level.WARNING, "Error calling command /"+commandLabel, ex);
if (getSettings().isDebug()) {
logger.log(Level.WARNING, "Error calling command /"+commandLabel, ex);
}
return true;
}
}

View File

@@ -463,4 +463,9 @@ public class Settings implements IConf
{
return config.getBoolean("nether.use-1to1-ratio", false);
}
public boolean isDebug()
{
return config.getBoolean("debug", false);
}
}

View File

@@ -168,6 +168,8 @@ per-warp-permission: false
# Sort output of /list command by groups
sort-list-by-groups: false
# More output to the console
debug: false
############################################################
# +------------------------------------------------------+ #