1. Guest, as per the stickied thread, this forum has not been in use since 2014. All bugs and feature requests should be posted to JIRA.

[SOLVED] [Skript] I need help!

Discussion in 'Bugs & Feature Requests' started by Scholler, Apr 16, 2018.

Thread Status:
Not open for further replies.
  1. What's wrong with this skript?

    Code (Text):
    on sign change:
            if line 1 is "[Buy]":
                    if line 2 contains a block:
                            set {Reward} to text of line 2
                            give {Reward} to player
    Yesterday I started learning Skript, and today I writ this Skript.
    I don't know what's wrong with this..
    So I want that:
    If the line 1 is "[Buy]", and in the line 2 there is a block-name (e.g. stone, tnt...)
    and I rightclick the sign then give the block what in line 2 to the player.

    (Sorry for my bad English)
  2. This is the wrong section. Post this in plugin development , skript
  3. set {_line} to line 2
    set {_line} to "%{_line}%" parsed as a item
    if {_line} is set:
    give {_line} to player

    should help
    • Agree Agree x 1
  4. Thank you very much!
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page