I'm trying to make a towny sign command skript, which can teleport residents of towns to outposts by clicking the sign. Here's what I have so far:
After testing it appears this is a problem with Umbaska? I notice it hasn't been updated since 1.11 (I'm running 1.12.1) so that could be it.
(If I get skript to run "send "%town of player%"" it comes up with <none>)
code_language.skript:
on rightclick on sign:
player is in world "Towny":
if line 1 of clicked block is "[Outpost]":
set {_n} to line 3 of clicked block parsed as a number
set {_town} to line 2 of clicked block parsed as text
if {_n} is set:
if {_town} is set:
if town of player is "%{_town}%":
make player run command "t outpost %{_n}%" as op
else:
send "&cYou must be in the town %{_town}% to use this sign!"
After testing it appears this is a problem with Umbaska? I notice it hasn't been updated since 1.11 (I'm running 1.12.1) so that could be it.
(If I get skript to run "send "%town of player%"" it comes up with <none>)