mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 12:06:15 +01:00
Page:
Scripting
Pages
API Documentation
API Flag
Backups
BlockBucket
Bypass Permissions
Changelog
ChestShop Compatibility
Chunk processor
Commands and Permissions
Commands
Events
FAWE
Fix plot borders
Getting an instance of PlotSquared
Home
Installation
Merging all plots
Migrating from an older major release
Permission Packs
Placeholders
Plot Component Presets
Plot Components
Plot Membership Tiers
Plot analysis
Plot flags
Plot web interface
PlotSquared web API
PlotSquared.use_THIS.yml
Printing the furthest plot
Resetting plot biomes
Schematic Generation
Schematic on Claim
Scripting
Set a plotworld as default world
Setting all signs
Single Plot Area
UUID conversion
Updating from 1.12 to 1.13
Usage
Usage: Schematic export
Vanilla Tags
Why should you switch to PlotSquared?
World reduction
WorldEdit processing
commands.yml
settings.yml
style.yml
worlds.yml
21
Scripting
NotMyFault edited this page 2021-04-27 18:05:12 +02:00
Note: Using Javascript in PlotSquared is deprecated and scheduled for removal without replacement. Within the deprecation of the Nashorn scripting engine in Java 11 and the removal in 15, version 6 will no longer make use of scripting via Nashorn.
Developer API
Overview
- Scripts go in the
PlotSquared/scripts
folder - The language is Javascript
Commands
/plot debugexec run <script> [args...]
/plot debugexec runasync <script> [args...]
/plot debugexec <code goes here>
Example scripts
- Merging-all-plots (included with P^2)
- Setting-all-signs
- Fix-plot-borders
- Resetting-plot-biomes
- Allowing-a-player-to-claim-more-plots
- Printing-the-furthest-plot
- Startup-script-commands
Have a script of your own? Feel free to add it to this page or create a ticket and we can add it: https://github.com/IntellectualSites/PlotSquared/issues
Home
Installation
API documentation
Further installation
- Road schematics
- settings.yml
- commands.yml
- worlds.yml
- style.yml
- UUID conversion
- Set a plot world as default world
- ChestShop Compatibility