#AFK skript showing errors online didnt

1 messages · Page 1 of 1 (latest)

orchid night
#

ive made a fuew afk skripts today but none of them seem to be working with looping players, I tried to get help online but the same error occurs every time.

    loop all players:
        if "%region at loop-player%" contains "afk":
            give loop-player 1 purple candle named "&5&lAFK Token"```
orchid night
#

yes

shrewd cradle
#

show me your /pl and skbee skript* info

small musk
#

On a side note, dont use a periodical for this. A player could happen to enter at 29min and 59s, and then instantly get a reward. Instead,

  • use on region enter
  • set an “afk” metadata tag/variable to true
  • use while that is true, wait 30min and give
  • delete when the leave
keen quarry
#

I have seen servers use this strategy

terse sparrow
#

I dont think "%region at loop-player%" is right

#

but I havent used regions in a while so I might be wrong

orchid night
#

there is a error on that

small musk
#

what error?

orchid night
#

cant understand this event

raven flax
#

Is it because you used contains and not contain?

#

It might be that

#

I used to have that issue but not sure

orchid night
#

no On region enter: doesnt work

raven flax
#

Oh, sorry I thought you were still talking about your original issue

raven flax
#

If your a beginner of skript just use something simple you can understand and modify

small musk
#

that requires skript 2.1+, dumb question, but you are on that, right?

orchid night
#

im skripting on skunity parser

small musk
#

oh, ignore that error then

orchid night
#

i was told it was a good place to check errors and stuff from my friendfs

#

OHHHH

small musk
orchid night
#

a;r

#

alr*

raven flax
#

Yes for example it doesn’t have support for worldguard, so yeah.

#

Well should work on the main server

#

Do you have any other issues?

orchid night
#

yes

#

skbee

#

when i try to install it, it shows red and disables all my normal skripts

small musk
#

what version?

raven flax
#

Could you be a bit more specific? Where does it show red and what do you mean by disables all your skripts? Also which version are you on?

orchid night
#

of server or skbee?

small musk
#

both

raven flax
#

Both ig

#

jinx lol

#

double jinx to be exact

orchid night
#

server im on 1.19.2 and i search for 1.19.2 skbee

#

mainly from here

small musk
#

you should check shane bee (the creator)'s github

orchid night
#

ok

small musk
orchid night
#

well i mean it says it wont support below 1.20

#

but i dont really know how to skript scoreboard without skbee

small musk
#

scroll down to the bottom of the page

orchid night
#

I dont see 1.19.2 in that list

#

nvm got it

#

ty

heavy willow
#

“On entering region”

#

Not on region enter

shrewd cradle
#

I use on region enter