Need help adding cooldowns
without perms: 5s cooldown
With dupe.2.5 2.5s cooldown
and with dupe.0 no cooldown
Can anyone help me add all 3 cooldowns into the code
[doublepost=1644802594,1644762101][/doublepost]bump
[doublepost=1644891034][/doublepost]bump
without perms: 5s cooldown
With dupe.2.5 2.5s cooldown
and with dupe.0 no cooldown
Can anyone help me add all 3 cooldowns into the code
Code:
options:
blacklist: command block and bedrock and repeating command block and debug stick and player head and wither skeleton skull
prefix: &dSERVERNAMEHERE
command /dupe [<number>]:
trigger:
if {@blacklist} contains type of tool:
send "{@prefix} &3| &3You cannot dupe that item!"
stop
else:
if arg-1 is not set:
add player's tool to player's inventory
stop
else:
if arg-1 is less than 2:
add player's tool to player's inventory
stop
else:
if arg-1 is more than 5:
loop 6 times:
add player's tool to player's inventory
stop
else:
loop arg-1 times:
add player's tool to player's inventory
[doublepost=1644891034][/doublepost]bump