function whiletest(p: player):
while {_p} is online:
broadcast "work"
wait a second
command test:
trigger:
whiletest(player)
it will send "work" one time then it stops
command test:
trigger:
while player is online:
broadcast "work"
wait a second
works
Skript v2.3-alpha3
If im not mistaken this is a problem from previous versions. I remember running into this when i was writing flyCard and having to make a work around... I just didnt think to report it :) GLAD YOU DID!
I can confirm this is still an issue in alpha3 with 1.13 so #1287 doesn't seem fully fixed. I'm labeling at the same priority (this is an impactful issue because it's super counter-intuitive).
Could someone test with upcoming build (alpha5) when it is out?
seems to work fine on in Skript v2.3-alpha4, I will test it on alpha5 when is out.
@UzumakiYT hey, it's out
seems to work fine.
Most helpful comment
I can confirm this is still an issue in alpha3 with 1.13 so #1287 doesn't seem fully fixed. I'm labeling at the same priority (this is an impactful issue because it's super counter-intuitive).