Notice: If you are updating from version 1.2.0, you will need to manually update your config to reflect the new commands on advance method. All commands will now fall under "commands-on-advance" and can be prefixed with [console] or [player] to execute commands via the player/console or [message] to send a message.
Config examples available at the bottom of this message.
Added:
- Option to execute commands as player or console when clicking an item in a screen
- Option to send the player message(s) when clicking an item
- Option to close the screen when clicking an item
Other:
- Merged "player-commands-on-advance" and "console-commands-on-advance" into "commands-on-advance" (config.yml)
New 'config.yml' commands section:
Code (Text):
commands-on-advance:
- '[player] balance'
- '[console] give %player% dirt 1'
- '[message] Is that dirt in your inventory? Ew...'
New 'screens.yml' item section options:
Code (Text):
Items:
first-item:
material: DIAMOND_SWORD
custom-model-data: 1
slot: 44
name: '#ee0000The Gizmo Sword'
lore:
- '#48cfa9Lores have multi-line'
- '#f2991dand hex support!'
hide-flags: true
commands:
- '[player] i diamond 1'
- '[console] give %player% emerald 1'
- '[message] A diamond and emerald, such a dynamic duo.'
close-on-click: true