#(simulakrum) NPC command with cooldown and permission check

15 messages · Page 1 of 1 (latest)

worthy kelp
#

Hey!
I would like to create an NPC, where players with the permission example.daily can get 5 iron ingots every 24 hours. Players without this permission cannot get anything.
What would this npc-command have to look like?

nocturne berryBOT
#

(simulakrum) NPC command with cooldown and permission check

#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

silent spindle
#

!clickcommands

lime elbowBOT
silent spindle
#

Use the permission and --cooldown argument within your command

#

/npc command add --permission example.daily --cooldown 86400s give <p> iron_ingots 5

#

something like that ^

worthy kelp
#

Thanx!

idle thistleBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@worthy kelp