CraftBook 3

CraftBook 3

139k Downloads

Require confirmation on CommandItem Items

LadyCailinBot opened this issue · 4 comments

commented

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

Comment by Kainzo

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

commented

Comment by Kainzo

Any updates to this?

commented

Comment by Kainzo

Friendly bump

commented

Comment by Kainzo

Bump.