Jump to content
  • 0

TAB header won't work (Skript)


PeshoProto111

Question

Hi, when I reload the tablist.sk script, I have this script here:

 

options:
  Header: &b&lGPvPv%nl%&f&lSeason 1%nl%%nl%&f&lWelcome &b&l%player%&f&l!%nl%Online Players %{Online}% %nl%%nl%&b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m 
  Footer: &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m &b&m %nl%%nl%&b&lGPvPv.minehut.gg

every second:
  loop all players:
    set loop-player's tab list header to "{@Header}"
    set loop-player's tab list footer to "{@Footer}"
    set {Online} to number of all players
    stop

And when I reload tablist.sk, it shows this error:

Line 7: (tablist,sk)

     There's no player in a periodical event

      Line: set loop-player's tab list header to "{@Header}"

 

[Skript] Encountered 1 error while reloading tablist.sk! (8ms)

How do I fix that?

Spoiler

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...