### Error Announcer Command # by Mwthorn (Discord: Mwthorn#2843) (Mail: mwthorn@gmail.com) # Ask for help at any time on the Official Denizen Script Discord: https://discord.gg/Q6pZGSR # Sends error messages to operators through in-game chat. # Useful when you are not reading debug from console and just want to be notified if any errors has occured. # These messages are also displayed when debug is turned off. # But you probably want to check console logs for further details about an error if you have debug enabled. ## Instructions: # - Place the script in your script folder. # - Restart server or reload scripts # - Done! Error_Announcer_Events: type: world debug: false events: on script generates error: - announce "<&c>Script Error<&co> in <&nl>" to_ops on server generates exception: - announce "<&c>Server generated exception<&co> " to_ops