YodaForce157 Posted June 14, 2020 Posted June 14, 2020 hi so ive made a scoreboard and would like it to be looped so it updates it ever 2 seconds but i get the error cant understand this event : "every 2 seconds in world "world":" my skript is every 2 seconds in world "world": loop all players: wipe loop-player's sidebar set name of sidebar of loop-player to "&9Space&bPlots!" set score "&b➥ &b%LOOP-PLAYER%" in sidebar of loop-player to 12 set score "&b➥ Balance %loop-player's balance%" in sidebar of loop-player to 11 set score "&b➥ Rank:%loop-player's prefix%%LOOP-PLAYER%" in sidebar of loop-player to 10 set score "&b" in sidebar of loop-player to 9 set score "&b➥ SpacePlots.minehut.gg" in sidebar of loop-player to 8 set score "&b➥ Online %amount of players%/20" in sidebar of loop-player to 7 Please help!
nullific Posted June 14, 2020 Posted June 14, 2020 15 minutes ago, YodaForce157 said: hi so ive made a scoreboard and would like it to be looped so it updates it ever 2 seconds but i get the error cant understand this event : "every 2 seconds in world "world":" my skript is every 2 seconds in world "world": loop all players: wipe loop-player's sidebar set name of sidebar of loop-player to "&9Space&bPlots!" set score "&b➥ &b%LOOP-PLAYER%" in sidebar of loop-player to 12 set score "&b➥ Balance %loop-player's balance%" in sidebar of loop-player to 11 set score "&b➥ Rank:%loop-player's prefix%%LOOP-PLAYER%" in sidebar of loop-player to 10 set score "&b" in sidebar of loop-player to 9 set score "&b➥ SpacePlots.minehut.gg" in sidebar of loop-player to 8 set score "&b➥ Online %amount of players%/20" in sidebar of loop-player to 7 Please help! every 2 seconds in "world" Discord: neo?#1200 First Join: December 17th, 2015 VIP: 23/08/2019 Minecraft Username: nullific
YodaForce157 Posted June 14, 2020 Author Posted June 14, 2020 oof i forgot to say i went to skript and they tested on their server and it worked so its minehut BUT i have seen a scoreboard refresh on minehut before
nullific Posted June 14, 2020 Posted June 14, 2020 i often use functions, e.g: on chat: sbRefresh(player) function sbRefresh(p: player): wipe {_p}'s sidebar set {_uuid} to uuid of {_p} set name of sidebar of {_p} to "&cservername" set score " " in sidebar of {_p} to 9 set score "&erandomvar: %{varofplayer::%{_uuid}%}%" in sidebar of {_p} to 8 set score " " in sidebar of {_p} to 7 Discord: neo?#1200 First Join: December 17th, 2015 VIP: 23/08/2019 Minecraft Username: nullific
nullific Posted June 14, 2020 Posted June 14, 2020 that was an example, you change the event for example: on sneak toggle: sbRefresh(player) Discord: neo?#1200 First Join: December 17th, 2015 VIP: 23/08/2019 Minecraft Username: nullific
Santio71 Posted June 14, 2020 Posted June 14, 2020 on join: while player is online: updateSidebar(player) wait 3 ticks function updateSidebar(p: player): # Update sidebar here This will update every 3 ticks in a efficient manner, just remember to rejoin once you update or add this skript, and never remove the wait Santio71 -> Developer Development Lead for Minehut Events Team First Joined: Jan. 24, 2016 [VIP]: ~2019 Joined CET: July 22, 2019 (About 1.75 years ago) [PRO]: May 6, 2020 Rejoined CET: June 15, 2020 Moderator: December 19, 2022
filr Posted June 14, 2020 Posted June 14, 2020 Moved to Skript Yes I used to be [ADMIN]. I resigned from that position Subscribe on YouTube (truly epic content)Follow me on Twitter
OMGPandaYT2 Posted June 14, 2020 Posted June 14, 2020 i actually would probaly just prefer: every 2 seconds: instead of using functions and 'every 2 seconds in "world":'
nicholxs Posted June 15, 2020 Posted June 15, 2020 12 hours ago, OMGPandaYT2 said: i actually would probaly just prefer: every 2 seconds: instead of using functions and 'every 2 seconds in "world":' You will probably get a skript error if you have multiple worlds and you aren't including the world part. First Joined: July 2015VIP: January 2020Jr.Mod: 1st April 2020Mod: 16th July 2020Info:~ Skript Developer ~ Discord: @nicholxs#0001 ~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical
OMGPandaYT2 Posted June 16, 2020 Posted June 16, 2020 On 6/15/2020 at 2:17 AM, Nichxlxs said: You will probably get a skript error if you have multiple worlds and you aren't including the world part. oh i dont use multiple worlds so... ye
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 accountSign in
Already have an account? Sign in here.
Sign In Now