You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2300

Error Announcer v1
Denizen Script
2019/11/04 13:09:26 UTC-08:00
Guest
Click here to view this paste as a raw text file | Or download the script


### 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> <context.queue.script.name||null> in <context.queue.script.relative_filename||null><&nl><context.message||null>" to_ops

        on server generates exception:
        - announce "<&c>Server generated exception<&co> <context.type>" to_ops