mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-07 08:58:05 +01: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:
parent
da1023975b
commit
468f646e6e
Essentials/src
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
############################################################
|
||||
# +------------------------------------------------------+ #
|
||||
|
Loading…
Reference in New Issue
Block a user