Do you want to execute certain functions with certain conditions unique to certain functions? this is your solution
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
functions | all functions | ArrayList or text | Yes | Does the same as the"functions:" configuration section. |
conditions | all conditions | ArrayList or text | No | It does the same as the"conditions" section of the configuration. |
async | true or false | Booelan | No | It is important to know if you are going to run it async or sync since sync depends on what things can cause lag, so we recommend that if it is not something that affects the world, you use async as well as adding items to an inventory, among others. By default it is false |
executeFunctions { functions = [ setTitleInventory { title = text / toAll = true }
] / conditions = [ { var = $block_storage_config_id$ } == { text = blockstorage3 } ] / async = false }
Run java code in a simple way
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
code | java code | Text | Yes | It is the code you want to run |
imports | Java class imports | ArrayList or text | No | Sometimes in some things you run it will not work because you have to put the imports |
javaCode { code = System.out.println(Bukkit.getServer()); / imports = [org.bukkit.Bukkit] }
Used to execute an action config.
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
action | Action config id | Text | Yes | The action config which is executed |
vars | list vars | ArrayList or text | No | It is to add/import variables from the current action to the action you want to execute. The %% variables will not work, only the $$ can be imported |
executeAction { action = action2 / vars = [ $block_storage_config_id$ ] }