mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-15 13:36:31 +00: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
3 changed files with 10 additions and 1 deletions
|
@ -572,7 +572,9 @@ public class Essentials extends JavaPlugin
|
||||||
catch (Throwable ex)
|
catch (Throwable ex)
|
||||||
{
|
{
|
||||||
sender.sendMessage(ChatColor.RED + "Error: " + ex.getMessage());
|
sender.sendMessage(ChatColor.RED + "Error: " + ex.getMessage());
|
||||||
|
if (getSettings().isDebug()) {
|
||||||
logger.log(Level.WARNING, "Error calling command /"+commandLabel, ex);
|
logger.log(Level.WARNING, "Error calling command /"+commandLabel, ex);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -463,4 +463,9 @@ public class Settings implements IConf
|
||||||
{
|
{
|
||||||
return config.getBoolean("nether.use-1to1-ratio", false);
|
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 output of /list command by groups
|
||||||
sort-list-by-groups: false
|
sort-list-by-groups: false
|
||||||
|
|
||||||
|
# More output to the console
|
||||||
|
debug: false
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
# +------------------------------------------------------+ #
|
# +------------------------------------------------------+ #
|
||||||
|
|
Loading…
Reference in a new issue