Skript: while not work

Created on 11 Sep 2018  路  7Comments  路  Source: SkriptLang/Skript

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

bug medium

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).

All 7 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

TheClassic36 picture TheClassic36  路  3Comments

Snow-Pyon picture Snow-Pyon  路  4Comments

ghost picture ghost  路  3Comments

MrScopes picture MrScopes  路  3Comments