ScriptCraft icon indicating copy to clipboard operation
ScriptCraft copied to clipboard

[Sugguestion] Allow users to suppress Script Errors to the Console

Open leumasme opened this issue 7 years ago • 1 comments

Adds a Value to the Config: suppress-errors: true/false ; false by default, can be changed to true to hide script execution errors from /js and plugins

leumasme avatar Jul 02 '18 13:07 leumasme

This needs to be done in the Java wrapper who logs all the exception : https://github.com/walterhiggins/ScriptCraft/blob/master/src/main/java/bukkit/org/scriptcraftjs/bukkit/ScriptCraftPlugin.java#L78

But I don't think it's a wise idea to remove error logging, sometimes it's the only way to find there is an issue in your code (e.g when you make an event without catching the exceptions, it goes directly to the server console)

Gloorf avatar Jul 31 '18 22:07 Gloorf