ScriptAPI

Getting Started

ScriptManager The ScriptManager serves as an overview of all installed scripts, their author and current version. It also allows importing additional scripts and deleting already installed ones. The Import button allows you to import single script files as well as compressed zip packages cotaining m...

How to setup Babel

Introduction If you write scripts for LiquidBounces ScriptAPI, you are limited by the fact that the Nashorn JavaScript engine in Java 8 only offers support up to ES5. For this reason, many features introduced in newer definitions of JavaScript simply do not exist here. Now there are two main ways ...

Managers

Description Each module, command or inventory tab has to be registered in the script's body otherwise it will not be available in the client. The script API offers different managers for inventory tabs, modules and commands. They can also be used to retreive modules or commands from the client. Regi...

Creating Modules

Creating Commands

Example function ExampleCommand() { /* 'getName()' returns the the name of the command. In this example, '.exampleCommand' will run the command. */ this.getName = function() { return "exampleCommand"; }; /* 'getAliases()' can be used to define alias names for a command...

Creating Inventory Tabs

Example function ExampleTab() { // 'getLabel()' returns the name of inventory tab. this.getLabel = function () { return "ExampleTab"; }; // 'getTabIconItem()' returns the item icon which should be used for the tab. this.getTabIconItem = function () { return Java...