-
-
Notifications
You must be signed in to change notification settings - Fork 3
Variable: execute
Misat11 edited this page May 23, 2020
·
2 revisions
When you click on item with this variable, it will execute specified commands. You can use just string or list of commands. You can define if command is executed via console or player also you can send player to another bungeecord server with this.
Yaml:
- execute: console:give Misat11 apple 64
- execute: player:msg Misat11 Hello!
- execute: bungee:hub
- execute:
- console:give Misat11 apple 64
- player:msg Misat11 Hello!
- bungee:hub
Groovy:
item('DIRT') {
execute 'console:give Misat11 apple 64'
}
item('DIRT') {
execute 'player:msg Misat11 Hello!'
}
item('DIRT') {
execute [
'console:give Misat11 apple 64',
'player:msg Misat11 Hello!'
]
}
Can't find what are you looking for on this wiki? Maybe our automatically generated javadoc could help you https://docs.screamingsandals.org/simpleinventories/simpleinventories-core/
- Welcome on this wiki
- Formats:
- Variables:
- Callbacks: (Groovy only)
-
Examples:
- Making shop (Groovy only)
- Making vault shop (Groovy only)