mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 03:24:31 +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:
@@ -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
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
# +------------------------------------------------------+ #
|
# +------------------------------------------------------+ #
|
||||||
|
Reference in New Issue
Block a user