- Fixed abusive leave command (#16).
- Now game items can only work under certain actions.
Changes in items.yml
Code (YAML):
items:
leave-item:
name
:
"&c&lReturn to Lobby &7(Right Click)"
material
: RED_BED
slot
: 8
lore
:
-
"&7Right-click to leave to the lobby!"
# Actions attribute can also be added to other lobby and spectator items.
# By default, items will be triggered for all actions. (PHYSICAL is not allowed)
actions
:
-
"RIGHT_CLICK_BLOCK"
-
"RIGHT_CLICK_AIR"
-
"LEFT_CLICK_BLOCK"
-
"LEFT_CLICK_AIR"