WIP Java Interoperability
All scripts features are available through the ScriptManager
class
// Called on startup to find all scripts and load themScriptManager.load();// Retrieve all currently loaded scriptsScriptManager.getScripts();// Unload all scriptsScriptManager.shutdown()// Reload scriptsScriptManager.reload();// Change the permission to executor MineScript commandsScriptManager.setCommandPermission(player -> player.getGameMode()==GameMode.CREATIVE);// Access the features APIScriptManager.API;
ScriptManager#API
gives you access to all the scripting components (directly linked to commands, eg region), and also ScriptAPI#getExecutor
giving you the methods needed to run commands & signals.