1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!


    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ersatz PAPI in non-player event

Discussion in 'Skript' started by dxcf, Jul 11, 2020.

Thread Status:
Not open for further replies.
  1. dxcf

    dxcf Member

    Apr 8, 2020
    Likes Received:
    So I was trying to set up a scoreboard which shows stats of the player, in the placeholder part I use Ersatz then it says There's no player in a periodical event then I switched to function (Skellett's scoreboard) then I got another error saying There's no player in a function event

    Does anyone know how to fix?

    Code (Skript):
    1. function updateBoard(p: player):
    2.     set {tps} to placeholder "server_tps"
    3.     set {joins} to placeholder "server_unique_joins"
    4.     setSlot({_p}, "Test", 10, "&7&m+---------------------+")
    5.     setSlot({_p}, "Test", 9, "&7» &e&lPlayer")
    6.     setSlot({_p}, "Test", 8, "  &7Name: &e%{_p}%")
    7.     setSlot({_p}, "Test", 7, "  &7Balance: &e%{_p}'s balance%")
    8.     setSlot({_p}, "Test", 6, "     ")
    9.     setSlot({_p}, "Test", 5, "&7» &e&lServer")
    10.     setSlot({_p}, "Test", 4, "  &7Online players: &e%{online}%")
    11.     setSlot({_p}, "Test", 3, "  &7TPS: &e%{tps}%")
    12.     setSlot({_p}, "Test", 2, "  &7Unique Joins: &e%{joins}%")
    13.     setSlot({_p}, "Test", 1, "&7&m+---------------------+")
Thread Status:
Not open for further replies.

Share This Page