Hello!
I need help,
When i create 1 sign it is working, but when i create second it dont work. In console and on reload errors didnt appear.
I need help,
When i create 1 sign it is working, but when i create second it dont work. In console and on reload errors didnt appear.
Code:
on place:
set {_l} to event-location
loop 50 times:
wait 1 second
if line 1 is "sign place":
if line 2 is set:
set {_line} to line 2
loop {warp::*}:
if {_line} is loop-value-2:
if player has permission "devt.admin":
set line 1 to "&8&lKlikni"
set line 2 to "&c&lTELEPORT"
set line 3 to "%{_line}%"
set line 4 to "&8&lKlikni"
add {_l} to {devt.sign::*}
send "{@prefix} &f|&7 Cedulka vytvorena"
else:
stop
on right click on sign:
set {_l} to event-location
loop {devt.sign::*}:
if {_l} is {devt.sign::*}:
set {_w} to line 3
teleport player to {warp.%{_w}%}
on break:
set {_l} to event-location
if player has permission "devt.admin":
loop {devt.sign::*}:
if {_l} is loop-value:
remove loop-value from {devt.sign::*}
send "{@prefix}&f |&7 Cedulka znicena!"