i was making my own plugin and i got stuck here is the code
[doublepost=1580332886,1580332846][/doublepost]idk why but the image of the eror disappared so here it is
Code:
Variables:
{cooldown.%player%} = 5
#--------------------------------------------------------------------------------------------------
# EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
if {cooldown.%player%} is equal to 5:
wait 1 tick
if name of player's held item contains "Dashing":
push player forwards with force 1.5
loop 5 times:
send action bar "&cCooldown until another dash: %{cooldown.%player%}%" to player
set line 5 of lore of {Dash} to "&7&lCooldown: %{cooldown.%player%}% Seconds"
subtract 1 from {cooldown.%player%}
wait 1 second
else:
stop
else:
stop
set {cooldown.%player%} to 5
send action bar "&a&lDash ready" to player
on damage of a player:
damage cause is player
if attacker's tool is a sword:
loop 5 times:
play lava pop on the victim
command /tester
trigger:
set {Dash} to Diamond Sword with sharpness 1
set line 1 of lore of {Dash} to "&6Item Ability: Dashing"
set line 2 of lore of {Dash} to "&7Right click to make"
set line 3 of lore of {Dash} to "the playerbe pushed in the direction he is looking"
set line 4 of lore of {Dash} to ""
and here a screen of the error pls help
[IMG]https://i.badlion.net/59uZjZjhB6WreWSmJRD9TU.png[/IMG]
set line 5 of lore of {Dash} to "&7&lCooldown: %{cooldown.%player%}% Seconds"
give {Dash} to player