a unique name
These are utilities to convert Java objects to native JavaScript types
Interpolate arguments to replace occurrences of %s Will interpolate an empty string for missing arguments
So: interpolate('Player %s was %s by %s', 'sitapati', 'killed', 'a dragon') returns: 'Player sitapati was killed by a dragon'
Return a localiser. This can load locale strings, and transform a given source string to the correct locale
This function returns a namespaced log function. The log function takes one argument and an optional second argument.
exists
path to file, relative to Minecraft server root
Checks if file or directory exists.
readFile
path to file, relative to Minecraft server root
Reads the contents of a file from the filesystem.
remove
path to file, relative to Minecraft server root
Delete file or directory (recursive).
writeFile
path to file, relative to Minecraft server root
file content to write
Writes the contents of a file to the filesystem.
Generated using TypeDoc
Return a DurableMap - a disk-backed memory that survives JS engine refresh