Skip to content
thienbao860 edited this page Jan 11, 2021 · 23 revisions

JavaScript-Expansion is an expansion for the Spigot plugin PlaceholderAPI.

Dev builds: Build Status

Installation

  1. Download the expansion using /papi ecloud download javascript
  2. Reload PlaceholderAPI with /papi reload
  3. Download/make some scripts.
  4. Profit?

Commands

Aliases: javascriptexpansion, jsexp. Commands require the permission node placeholderapi.js.admin. Usage (General):

  • /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.
  • /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:

  • /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 download <name> - Download a script from Github to your scripts folder.

Community Scripts

Want to try out some pre-made scripts from the community and see what the JavaScript Expansion can do? All you have to do is enable the github_script_downloads config option in the PlaceholderAPI config.yml. From there use the 'git' subcommands to check out the scripts we have available in this repo.

If you would like to contribute, simply submit a PR with your script!

Example scripts can be found here