-
-
Notifications
You must be signed in to change notification settings - Fork 3
Callback: close
Misat11 edited this page May 11, 2020
·
2 revisions
This callback is called when someone closes gui or subgui. This callback is cancellable so you can check, if it's canceled or cancel it. When it's canceled, the inventory will be reopened. Can be used just globally, you can't register it to an item. These callbacks are called while CloseInventoryEvent is called.
inventory {
close {
player.sendMessage 'Goodbye'
}
item ('STONE')
item ('GRAVEL') {
item('DIRT')
}
}
All methods available inside close can be found here
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)