OpenJS-docs
Download plugin
  • Overview
    • Welcome
  • Getting Started
    • Installing the plugin
    • Configuration file
    • Commands
    • Creating scripts
  • OpenJS Components
    • Feature Flags
    • Managing scripts within scripts
    • Sharing variables between scripts
    • Custom Commands
    • Using PlaceHolderApi
    • Listening and cancelling events
    • Custom events
    • Loading and saving data
    • Logging in console
    • Scheduling
    • Java imports
  • Example Scripts
    • spawn hit stand command
    • Knockbackstick command
    • No hit-cooldown script
    • NoBlockPlacing script
    • Saving Player data script
    • running code asynchronously
    • WhileTrue do script
Powered by GitBook
On this page
  1. Getting Started

Commands

Main Command: /oj

  • This command is used to manage JavaScript scripts within the OpenJS plugin.

Subcommands

  1. Help:

    • Usage: /oj help

    • Description: Displays the usage and description of available subcommands.

  2. Version:

    • Usage: /oj version

    • Description: Displays the version of this plugin.

  3. Reload:

    • Usage: /oj reload or /oj reload <script>

    • Description: Reloads all scripts and the config file. If a script name is specified, reloads only that script.

  4. Load:

    • Usage: /oj load <script>

    • Description: Loads the specified script. The script must not be disabled.

  5. Enable:

    • Usage: /oj enable <script>

    • Description: Enables and loads the specified script.

  6. Disable:

    • Usage: /oj disable <script>

    • Description: Disables and unloads the specified script.

  7. List:

    • Usage: /oj list or /oj list enabled, /oj list disabled, /oj list not_loaded

    • Description: Lists all scripts. Optionally, lists only enabled, disabled, or not loaded scripts.

Permissions:

  1. openjs.use

    • Allows using all OpenJS commands

That's actually it 😅

PreviousConfiguration fileNextCreating scripts

Last updated 4 days ago