1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sign teleporter

Jun 6, 2019
Sign teleporter
  • I dont know what is wrong,
    When i place 1 sign its normal,
    But when i place second sign nothing happen when i click on it,

    My code:
    Code (Text):
    1. on place:
    2.     set {_l} to event-location
    3.     loop 50 times:
    4.         wait 1 second
    5.         if line 1 is "sign place":
    6.             if line 2 is set:
    7.                 set {_line} to line 2
    8.                 loop {warp::*}:
    9.                     if {_line} is loop-value-2:
    10.                         if player has permission "devt.admin":
    11.                             set line 1 to "&8&lKlikni"
    12.                             set line 2 to "&c&lTELEPORT"
    13.                             set line 3 to "%{_line}%"
    14.                             set line 4 to "&8&lKlikni"
    15.                             add {_l} to {devt.sign::*}
    16.                             send "{@prefix} &f|&7 Cedulka vytvorena"
    17.                         else:
    18.                             stop
    19. on right click on sign:  
    20.     set {_l} to event-location
    21.     loop {devt.sign::*}:
    22.         if {_l} is {devt.sign::*}:
    23.             set {_w} to line 3
    24.             teleport player to {warp.%{_w}%}
    26. on break:
    27.     set {_l} to event-location
    28.     if player has permission "devt.admin":
    29.         loop {devt.sign::*}:
    30.             if {_l} is loop-value:
    31.                 remove loop-value from {devt.sign::*}
    32.                 send "{@prefix}&f |&7 Cedulka znicena!"