Commanditems - not blocking item-placement (blocks) for all users cept op.
LadyCailinBot opened this issue · 8 comments
CRAFTBOOK-3021 - Reported by Kainzo
The below commanditem does not properly block placement... as an admin I cannot reproduce this, but figuring I missed some permission grant to users so they can cancel-actions.
CrateKey:
item: TRIPWIRE_HOOK|§6§lGolden Crate Key|§9§oHold onto this key...|§7§oRequired to open the|§b§lLocked Crates of Loot.
cooldown: 10
click-type: CLICK_EITHER
run-as: SUPERUSER
cancel-action: true
consumable-message: You need a Locked Crate to use this item!
cooldown-message: You have to wait %time% seconds to use this again!
Comment by me4502
What's the permission node section for that command item? Do normal users havew the standard command item permission?
Comment by Kainzo
They have the ability to use command-items but no specific nodes have been granted.
Comment by Kainzo
Correct, the "boost" token item they can use just fine.
BoostToken1:
item: 'NETHER_STAR|§4§lToken of Boost I|§9Uses: 1|§7§oRight-click to enable|§7§o100%
Exp Boost for|§7§o1 hour.'
commands:
- hero bonus time 1h
- hero bonus message @p enabled 100% boost via token!
- hero bonus exp-mult 2.0
- say §b100% BOOST by @p for 1 hour via a Token.
- ch qm alert 100% BOOST ENABLED for 1 hour.
run-as: CONSOLE
click-type: CLICK_RIGHT
cooldown: 10
cancel-action: true
consumed-items: []
consume-self: true
keep-on-death: false
actions: {}
Comment by me4502
cooldown: 10
Is it within the cooldown that they are using it?