#Adding ping to scoreboard
1 messages · Page 1 of 1 (latest)
because there's no player in a periodical event
nor can you set a player's ping
player -> loop-player
line 6 is useless if you're not gonna use the {_ping} variable
I dont recommend looping players for this
Also, why are you giving everyone admin rank?
On join and a while loop allows you to constantly update it
However, you might not need to update it every second
can you fix it here
onjoin:
while loop:
set title of loop-player's scoreboard to " &5Omni&1Dupe &3S1"
set line 15 of loop-player's scoreboard to "&3You &8%loop-player%"
set line 14 of loop-player's scoreboard to " &7Rank: [&5Ad&1min&7]"
set line 13 of loop-player's scoreboard to ""
set line 12 of loop-player's scoreboard to " &7ping: %player's ping%"
set line 11 of loop-player's scoreboard to ""
set line 10 of loop-player's scoreboard to ""
set line 9 of loop-player's scoreboard to ""
set line 8 of loop-player's scoreboard to ""
set line 7 of loop-player's scoreboard to ""
set line 6 of loop-player's scoreboard to ""
set line 5 of loop-player's scoreboard to ""
set line 4 of loop-player's scoreboard to ""
set line 3 of loop-player's scoreboard to ""
set line 2 of loop-player's scoreboard to ""
set line 1 of loop-player's scoreboard to ""
In fact, if youre only displaying the server’s name and ip, and the player’s username, you dont need to update it at all. Just set it once
If you’re displaying deaths and kills, you dont need that to update every second, just when one of those values changes. You can check with the on death event
Personally, I update the scoreboard through a function. I call this function in a while loop once a minute, but I also call the function for events like kill and death, or inventory close and stuff to make it more dynamic
- Code blocks,
- This is not what we do here. We are here to walk you through the process of fixing errors, not write code for you
You dont need to ping people
im sorryr
why tf are you pinging me when x8ights here
bro left
You can start with the on join: event, then use while player is online: to loop continuously while the player is online
? You said “cool” and that was it
done
the so can you walke me through and the rage grim are different messages
2 mins apart
arohnd
Just because someone doesn’t respond instantly doesnt mean you need to ping someone else
Okay, 
That’s going to give you a bunch (of the same) errors. Do you know what you need to do to fix that?
no idea
Well, since you’re now not looping players, you cant use the loop-player expression
btw where did you learn skript bc i cant learn anywhere
what do i replace it with
also dont i need to loop the ping?
Youre now working solely with the event-player, so use that. (Event-player is usually shortened to just player)
then how do i edit the scoreboard
The entire code is inside the while loop, which will run continuously while the player is online. So it will be updated
Speaking of running continuously, this will actually run too fast and cause your server to crash. You need to add a wait inside the loop
I would start by adding wait 1 second immediately after the loop
?
Yeah, that works. I usually do it right after the loop so I dont forget
.
Wdym? The lines set line n of player’s scoreboard to …, which you already have are doing that
but should i remove the loop
Although you need to replace all the loop-players with player
Theres still a few on the right
Looks good. Does it reload/work?
just the ping error
Whats the error?
Thats an issue with the server, not your script
so how do i do it
how to i update skript in minehut
Its not Skript, you need to change your server to paper or spigot
Switch it to PaperSpigot
I would recommend newest, as that allows for you to use the newest version of skript, which has a lot more capabilities
Paper
Did you restart the server? Youll need to do that when updating software.
Since the scoreboard is triggered on join:, youll also need to relog for it to show up
Im here..
k
It reloads successfully?
yep
You left the server and rejoined?
three times

photo or text
Either. Use code blocks if its text; ```code here ```
on join:
while player is online:
set title of player's scoreboard to " &5Omni&1Dupe &3S1"
set line 15 of player's scoreboard to "&3You &8%player%"
set line 14 of player's scoreboard to " &7Rank: [&5Ad&1min&7]"
set line 13 of player's scoreboard to ""
set line 12 of player's scoreboard to " &7ping: %player's ping%"
set line 11 of player's scoreboard to ""
set line 10 of player's scoreboard to ""
set line 9 of player's scoreboard to ""
set line 8 of player's scoreboard to ""
set line 7 of player's scoreboard to ""
set line 6 of player's scoreboard to ""
set line 5 of player's scoreboard to ""
set line 4 of player's scoreboard to ""
set line 3 of player's scoreboard to ""
set line 2 of player's scoreboard to ""
set line 1 of player's scoreboard to ""
wait 1 second
Code blocks please
how
But those symbols before and after
while player is online:
set title of player's scoreboard to " &5Omni&1Dupe &3S1"
set line 15 of player's scoreboard to "&3You &8%player%"
set line 14 of player's scoreboard to " &7Rank: [&5Ad&1min&7]"
set line 13 of player's scoreboard to ""
set line 12 of player's scoreboard to " &7ping: %player's ping%"
set line 11 of player's scoreboard to ""
set line 10 of player's scoreboard to ""
set line 9 of player's scoreboard to ""
set line 8 of player's scoreboard to ""
set line 7 of player's scoreboard to ""
set line 6 of player's scoreboard to ""
set line 5 of player's scoreboard to ""
set line 4 of player's scoreboard to ""
set line 3 of player's scoreboard to ""
set line 2 of player's scoreboard to ""
set line 1 of player's scoreboard to ""
wait 1 second```
NAH OMINDUPE CHAT WE FOUND A DUPE SERVER
cool
Are you sure that reloads? It looks like it should, but if it reloads it should show up
You have skbee installed?
Send sk info
you need to reload for it to show up
relog*
i think
They did
Oh yeah, youre on 1.17, right
Youll need a different version of skbee.
^
Also, dont use minehuts plugins page. Download skript and skbee from their official githubs, or in #bot-palace
“Releases” on the right
done im now restarting
my scoreboard looks like this for a server i coded set line 10 of player's scoreboard to "&7&l| " set line 9 of player's scoreboard to "&7&l| &a&lSTATISTICS:" set line 8 of player's scoreboard to "&7&l| &aCookies🍪: &7" set line 7 of player's scoreboard to "&7&l| " set line 6 of player's scoreboard to "&7&l| &aLevel: &7" set line 5 of player's scoreboard to "&7&l| &aXP✥: &7" set line 4 of player's scoreboard to "&7&l| " set line 3 of player's scoreboard to "&7&l| &aGemme🛡: &7%" set line 2 of player's scoreboard to "&7&l| " set title of player's scoreboard to "&f&lCookie Clicker"
lol
it's pretty outdated when i look at it
thats your code?
no
well
its what came out when i restarted with the updated version of skbee
x8ight
from that?
do you see errors in it?
when i look at it i say to myself dang you changing some lines for no reason, place the title, the line 15 and 13 in the on join and not while player is online
it should help reduce lag when i will work
i think it's trying to set the line of a inventory to "scoreboard to "" "
maybe add a space?
nah that woudn't work nvm
it says "" is not an item
yeah ik
Send sk info
that is so weird lmao
Do '/sk info' and send a screenshot
skript info
Uninstall skquery
isn't it outadted?
Its outdated and known for causing some issues
knew it 😎
i think i need skquery for the dupe skript
also it doesnt say that skbee is installed
give {_1} to player``` gg you did it
wdym
for your dupe skript !
that isn't suppose to happen
did you isntall the skbee.zip file?
What about /pl?
You dont. Anything query can do, skbee or plain skript can do
hum where did you place the .jar?
Why are there 2 skripts
did you place it in plugins or skript
one outdated and one not xD
the best thing about going in skunity is that you loose so many braincell you don't remember bad things in your life 🥰
x8ight what do you think
ask x8ight
how do we ping without pinging
you don't
bet
Both. Since youre not on 1.17, you can use latest
he's even outdated with skript 💀