Hey , i create a skript and it not working:
the teleport not working but the message is executed in console but not in chat , why?
code_language.skript:
on portal enter:
execute console command "admin compass open %player%"
teleport player to {_spawn27}
command /admin [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
permission: admin.owner
permission message: Unknown command. Type "/help" for help.
trigger:
if argument 1 is "spawns":
if argument 2 is "setportalspawn":
set {_spawn27} to location of player
message "&cThe PortalSpawn is setted!"
if argument 2 is "setspawnlobby":
set {spawn} to location of player
message "&c&cSet spawn to your current location!"
if argument 1 is "compass":
if argument 2 is "open":
message "In Maintenance"
the teleport not working but the message is executed in console but not in chat , why?