Manifest hook
Manifest hook is used to declare script metadata, like version, author name and script's webpage.
note
- This hook must be THE FIRST hook called in script, and can be called only once!
- This hook is optional, if not executed, script file name will be used as script name.
- If you are using bundler template, you shouldn't call this hook manually. Declare manifest in
script.config.jsfile instead.
Example
manifest({
name: "MyScript",
version: "1.0.0",
author: "MyName",
description: "My script",
url: "https://mysite.com/myscript",
loggerVersion: "3.5"
})
Manifest reference
| Filed | Required | Description |
|---|---|---|
| name | yes | Script name, must contain only uppercase and lowercase English letters, numbers and "-" |
| version | yes | Script version, can be any string |
| author | no | Author username |
| description | no | Script description |
| url | no | Script's or author's website url / discord invite / etc |
| loggerVersion | no | Minimal MCmdLogger version required to run this script |