My skript used to work but now it doesn't work even though I didn't make any changes to it.
[doublepost=1649493697,1649493513][/doublepost]i solved it
Code:
on rightclick with shears:
if name of tool of player is "&6&lAday":
if {paperrank1} contains "%player%":
send complex translated "boxurvival.paperone.unsuccesful" with inputs "Hello" and "there" to player
else:
set {paperrank1} to "%player%"
execute server command "/execute run clear AshKetchumK minecraft:shears{KnokkosCustomItems:{Name:paper1}} 1"
execute server command "/lp user %player% parent set trainertrainee"
send complex translated "paperone.basarili" with inputs "Hello" and "there" to player
on rightclick with diamond hoe:
if name of tool of player is "&6&lEğitmen":
if {rank22} contains "%player%":
send complex translated "papertwo.basarisiz" with inputs "Hello" and "there" to player
else:
set {rank22} to "%player%"
execute server command "/execute run clear AshKetchumK minecraft:diamond_hoe{KnokkosCustomItems:{Name:paper2}} 1"
execute server command "/lp user %player% parent set trainer"
send complex translated "papertwo.basarili" with inputs "Hello" and "there" to player
on rightclick with diamond hoe:
if name of tool of player is "&a&lAcemi":
if {rank33} contains "%player%":
send complex translated "paperthree.basarisiz" with inputs "Hello" and "there" to player
else:
set {rank33} to "%player%"
execute server command "/execute run clear AshKetchumK minecraft:diamond_hoe{KnokkosCustomItems:{Name:paper3}} 1"
execute server command "/lp user %player% parent set apprentice"
send complex translated "paperthree.basarili" with inputs "Hello" and "there" to player
execute server command "/chatcolor %player% a"
on rightclick with diamond hoe:
if name of tool of player is "&b&lBağımlı":
if {rank44} contains "%player%":
send complex translated "paperfour.basarisiz" with inputs "Hello" and "there" to player
else:
set {rank44} to "%player%"
execute server command "/execute run clear AshKetchumK minecraft:diamond_hoe{KnokkosCustomItems:{Name:paper4}} 1"
execute server command "/lp user %player% parent set addicted"
send complex translated "paperfour.basarili" with inputs "Hello" and "there" to player
execute server command "/chatcolor %player% 9"