options:
Cooldown1: "%{dashCD::%player's uuid%}%"
on swap hand items:
cancel event
if {Dash::%player's uuid%} > 0:
set {_u} to {_p}'s uuid
if {dash.last1::%{_u}%} is set:
set {_wait1} to difference between {dash.last1::%{_u}%} and now
else:
set {_wait1} to {@Cooldown1}
if {_wait1} >= {@Cooldown1}:
set {dash.last1::%{_u}%} to now
set player's walking speed to player's walking speed * 5
wait 15 seconds
set player's walking speed to player's walking speed / 5
else:
send action bar "&cYou need to wait %difference between {_wait1} and {@Cooldown1}%" to player
I am trying to use a variable in an option and it works fine, but on the last line it gives an error
invalid brackets/variables/text in ""
Cooldown1: "%{dashCD::%player's uuid%}%"
on swap hand items:
cancel event
if {Dash::%player's uuid%} > 0:
set {_u} to {_p}'s uuid
if {dash.last1::%{_u}%} is set:
set {_wait1} to difference between {dash.last1::%{_u}%} and now
else:
set {_wait1} to {@Cooldown1}
if {_wait1} >= {@Cooldown1}:
set {dash.last1::%{_u}%} to now
set player's walking speed to player's walking speed * 5
wait 15 seconds
set player's walking speed to player's walking speed / 5
else:
send action bar "&cYou need to wait %difference between {_wait1} and {@Cooldown1}%" to player
I am trying to use a variable in an option and it works fine, but on the last line it gives an error
invalid brackets/variables/text in ""