-
Notifications
You must be signed in to change notification settings - Fork 9
SuppressErrorPreprocessor
youyihj edited this page Jan 15, 2021
·
4 revisions
@since 1.5.0
The preprocessor can suppress errors and warnings produced by a single script to show in players' chat. It is different from vanilla CraftTweaker's #ikwid
, which suppresses all scripts.
You can suppress warnings by placing one of below in your script.
#suppress warning
#suppress warnings
You can suppress warnings and errors by placing one of below in your script.
#suppress error
#suppress errors
#suppress all
It suppresses errors and warnings produced by a single script to show in players' chat. However, script parse issues will still are shown. Errors will still be logged in crafttweaker.log
.
The implementation of this preprocessor is to overwrite CraftTweaker's logger. So once you use the preprocessor, #ikwid
and #nowarn
preprocessors will be useless.
- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils