Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameDebug
Related Guide Pagehttps://guide.denizenscript.com/guides/first-steps/problem-solving.html
Syntaxdebug (<type>) [<message>] (name:<name>) (format:<format>)
Short DescriptionShows a debug message.
Full DescriptionUse to quickly output debug information to console.

Outputs plain text debug to the console by default, supporting the 'debug' format type (see Language:Script Formats).

Alternatively, specify one of the following debug types:
DEBUG: standard hideable debug.
HEADER: standard hideable debug inside a header line.
FOOTER: a footer line.
SPACER: a spacer line.
LOG: global output, non-hideable.
APPROVAL: "Okay!" output, non-hideable.
ERROR: "Error!" output, non-hideable. Supports the 'error' format type, see Language:Script Formats.
REPORT: normally used to describe the arguments of a command, requires a name, hideable.
EXCEPTION: outputs a full java stacktrace.
RECORD: Use message 'start' to start recording, 'submit' to submit a recording, or 'cancel' to cancel a recording.
Related Tags<entry[saveName].submitted> returns the submit link (if any).
Usage Example
# Use to show an error.
- debug error "Something went wrong!"
Usage Example
# Use to add some information to help your own ability to read debug output from you script.
- debug "Time is currently <[milliseconds].div[1000].round> seconds!"
Usage Example
# Use to record a debug log of a certain script.
# NOTICE: Spamming debug recordings to the official Denizen Paste instance will result in you being blocked from the paste service.
- debug record start
- run myscript
- ~debug record submit save:mylog
- narrate "Recorded log as <entry[mylog].submitted||<red>FAILED>"
Groupcore
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/core/DebugCommand.java#L30