EngineHub / EngineHub/CraftBook
Require confirmation on CommandItem Items
- Dominant language
- Java
- Stars
- 320
- Forks
- 166
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 2
Description
CRAFTBOOK-3023 - Reported by Kainzo
We have an item that changes a user to a certain Heroes class by running an admin command. Several users accidentally "right-click" the item when trying to access chests/etc - is there a way to add a confirmation to this? I could use a delay but it doesn't seem that its possible to INTERRUPT the delay?
Perhaps the better thing would be to have DELAY Commands be interrupted by a CLICK_ACTION.
CodexNecro:
item: ENCHANTED_BOOK|§6§lCodex of Necromancy|§7§oRight-click to become|§7§oa Necromancer.|§e§oScholars of Death:|§e§oA Treatise on the Dark Arts.
commands:
- hero admin class @p Necromancer
run-as: CONSOLE
click-type: CLICK_RIGHT
delay: 5
cooldown: 10
cancel-action: true
consumed-items: []
require-sneaking-state: NONE
consume-self: true
keep-on-death: false
actions: {}
Contributor guide
Assessment
This issue has not been assessed yet.