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

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