CraftBook icon indicating copy to clipboard operation
CraftBook copied to clipboard

Require confirmation on CommandItem Items

Open LadyCailinBot opened this issue 10 years ago • 4 comments

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: {}

LadyCailinBot avatar Jun 24 '14 14:06 LadyCailinBot

Comment by Kainzo

Would love to see if this is in planning or possible :D

LadyCailinBot avatar Jul 01 '14 06:07 LadyCailinBot

Comment by Kainzo

Any updates to this?

LadyCailinBot avatar Jul 08 '14 04:07 LadyCailinBot

Comment by Kainzo

Friendly bump

LadyCailinBot avatar Jul 13 '14 21:07 LadyCailinBot

Comment by Kainzo

Bump.

LadyCailinBot avatar Aug 08 '14 18:08 LadyCailinBot