Ok so I found this code to make a cooldown on custom items:
However when I try to run it I get the following to errors:
[01:38:45 INFO]: [Skript] Line 12: (dashFav12.sk)
[01:38:45 INFO]: Can't understand this condition: 'diference between now and {%player's uuid%.dashrod.lastUsed} is less than 5 seconds'
[01:38:45 INFO]: Line: if diference between now and {%player's uuid%.dashrod.lastUsed} is less than 5 seconds:
[01:38:45 INFO]:
[01:38:45 INFO]: [Skript] Line 14: (dashFav12.sk)
[01:38:45 INFO]: 'else' has to be placed just after another 'if' or 'else if' section
[01:38:45 INFO]: Line: else:
Code:
on left click:
send "Work clcik" to player
if player's held item is {customitems::dashrod}:
if diference between now and {%player's uuid%.dashrod.lastUsed} is less than 5 seconds:
message "&fWait 5 seconds before use again!" to player
else:
send "Work dash" to player
push player forwards with velocity 2
play mob spawner flames at player
However when I try to run it I get the following to errors:
[01:38:45 INFO]: [Skript] Line 12: (dashFav12.sk)
[01:38:45 INFO]: Can't understand this condition: 'diference between now and {%player's uuid%.dashrod.lastUsed} is less than 5 seconds'
[01:38:45 INFO]: Line: if diference between now and {%player's uuid%.dashrod.lastUsed} is less than 5 seconds:
[01:38:45 INFO]:
[01:38:45 INFO]: [Skript] Line 14: (dashFav12.sk)
[01:38:45 INFO]: 'else' has to be placed just after another 'if' or 'else if' section
[01:38:45 INFO]: Line: else:
Last edited: