Skip to main content

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.js file instead.

Example

manifest({
name: "MyScript",
version: "1.0.0",
author: "MyName",
description: "My script",
url: "https://mysite.com/myscript",
loggerVersion: "3.5"
})

Manifest reference

FiledRequiredDescription
nameyesScript name, must contain only uppercase and lowercase English letters, numbers and "-"
versionyesScript version, can be any string
authornoAuthor username
descriptionnoScript description
urlnoScript's or author's website url / discord invite / etc
loggerVersionnoMinimal MCmdLogger version required to run this script