Solved Can't compare 'line 1 of sign' with a text

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Deceyven

Member
Oct 19, 2020
2
0
1
24
Hello, I having some issue on writing a skript for sign shop:

on rightclick:
block is a sign
line 1 of sign is "[Shop]"
player has 2 gold nuggets
remove 2 gold nuggets from player
give player 1 bread
message "<light green>You bought a bread."


The Error I Face is:
Line 3: Can't compare 'line 1 of sign' with a text (script.sk, line 3: line 1 of sign is "[Shop]"')
[doublepost=1603259403,1603258160][/doublepost]
Code:
on rightclick on sign:
        line 1 of event-block is "[Shop]"
        player has 2 gold nuggets
        remove 2 gold nuggets from player
        give player 1 bread
        message "<light green>You bought a bread."
 
What versions of Skript/Spigot are you running? I tested your exact code on Spigot 1.16.2 and Skript 2.5 and it worked perfectly.
 
Status
Not open for further replies.