Hi. I have a plugin, CraftBook, where players a able to place various signs with special functions. I want to use Skript, to add a price for making those signs, and almost have it with this piece of code:
This works, except for when players get the second line on the sign right, but other information on the sign wrong. In that case the player will still be charged, but the sign breaks after being placed. So, how would I make the above code wait a second and check if the sign is still there?
code_language.skript:
on sign change:
if line 2 contains "[mc1421]":
event-player has permission "craftbook.ic.mc1421"
if event-player's balance is greater than or equal to 100:
execute console command "money take %event-player% 100"
message "Du har betalt 100 em for [mc1421]"
stop
set block to air
message "Det koster 100 em at lave en [mc1421]"
This works, except for when players get the second line on the sign right, but other information on the sign wrong. In that case the player will still be charged, but the sign breaks after being placed. So, how would I make the above code wait a second and check if the sign is still there?