Update commands for 1.6 JS-Exp

thienbao860 2021-01-11 17:09:14 +07:00
parent eb73092c61
commit 7c4c781ea1

11
Home.md

@ -11,11 +11,18 @@ Dev builds:
## Commands ## Commands
Commands require the permission node `placeholderapi.js.admin` Aliases: `javascriptexpansion`, `jsexp`.
Commands require the permission node `placeholderapi.js.admin`.
Usage (General):
* `/jsexpansion` - Display expansion info. * `/jsexpansion` - Display expansion info.
* `/jsexpansion reload` - Reloads the expansion. This command is recommended over /papi reload because it does not interfere with PlaceholderAPI or reloading other expansions. **Currently broken, please use `/papi reload` until further notice.** * `/jsexpansion reload` - Reloads the expansion. This command is recommended over /papi reload because it does not interfere with PlaceholderAPI or reloading other expansions.
* `/jsexpansion list` - Display loaded scripts. * `/jsexpansion list` - Display loaded scripts.
Usage (Debug):
* `/jsexpansion parse [me/<player_name>] [code]` - Parse Javascript script locally
* `/jsexpansion loaddata [script_name]` - Load all save data from file into cache
* `/jsexpansion savedata [script_name]` - Save all data from cache to file
The following commands require the `github_script_downloads` config option be set to true in the PlaceholderAPI config: The following commands require the `github_script_downloads` config option be set to true in the PlaceholderAPI config:
* `/jsexpansion git list` - Display the names of all available scripts from the Javascript Expansion Github. * `/jsexpansion git list` - Display the names of all available scripts from the Javascript Expansion Github.
* `/jsexpansion git info <name>` - Display information on a script from our Github collection. * `/jsexpansion git info <name>` - Display information on a script from our Github collection.