#Adding ping to scoreboard

1 messages · Page 1 of 1 (latest)

mystic pecan
#

I have spent hours trying to get the ping to show up on the scoreboard still doesnt work. It says there is no player in a periodical event.

ocean gust
#

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

brittle harbor
#

I dont recommend looping players for this

#

Also, why are you giving everyone admin rank?

mystic pecan
#

so how do i do this

#

am i?

#

oh its temp

#

what would be a way to do it

brittle harbor
#

On join and a while loop allows you to constantly update it

#

However, you might not need to update it every second

mystic pecan
#

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 ""

brittle harbor
#

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

mystic pecan
#

and ping

#

so can you edit my skript so it works?

brittle harbor
mystic pecan
#

cool

#

so can you walk me through it a bit more

#

@ocean gust

brittle harbor
#

You dont need to ping people

mystic pecan
#

im sorryr

ocean gust
#

why tf are you pinging me when x8ights here

mystic pecan
#

bro left

brittle harbor
brittle harbor
mystic pecan
brittle harbor
mystic pecan
#

the so can you walke me through and the rage grim are different messages

#

2 mins apart

#

arohnd

brittle harbor
# mystic pecan

Just because someone doesn’t respond instantly doesnt mean you need to ping someone else

brittle harbor
mystic pecan
#

sorry

brittle harbor
#

That’s going to give you a bunch (of the same) errors. Do you know what you need to do to fix that?

mystic pecan
#

no idea

brittle harbor
#

Well, since you’re now not looping players, you cant use the loop-player expression

mystic pecan
mystic pecan
#

also dont i need to loop the ping?

brittle harbor
mystic pecan
#

then how do i edit the scoreboard

brittle harbor
# mystic pecan also dont i need to loop the ping?

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

mystic pecan
brittle harbor
#

Yeah, that works. I usually do it right after the loop so I dont forget

mystic pecan
brittle harbor
#

Wdym? The lines set line n of player’s scoreboard to …, which you already have are doing that

mystic pecan
#

but should i remove the loop

brittle harbor
mystic pecan
brittle harbor
#

Theres still a few on the right

mystic pecan
brittle harbor
#

Looks good. Does it reload/work?

mystic pecan
#

just the ping error

brittle harbor
#

Whats the error?

mystic pecan
brittle harbor
#

Thats an issue with the server, not your script

mystic pecan
#

so how do i do it

brittle harbor
#

Youll need to switch to something that supports it

mystic pecan
#

how to i update skript in minehut

brittle harbor
#

Its not Skript, you need to change your server to paper or spigot

mystic pecan
brittle harbor
#

Switch it to PaperSpigot

mystic pecan
#

can i keep 1.17.1

brittle harbor
brittle harbor
mystic pecan
#

k

#

doesnt pop up

brittle harbor
#

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

mystic pecan
#

still dont worjk

#

bro went idle

brittle harbor
#

Im here..

mystic pecan
#

k

brittle harbor
#

It reloads successfully?

mystic pecan
#

yep

brittle harbor
#

You left the server and rejoined?

mystic pecan
#

three times

brittle harbor
mystic pecan
#

photo or text

brittle harbor
#

Either. Use code blocks if its text; ```code here ```

mystic pecan
#

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

brittle harbor
mystic pecan
#

how

brittle harbor
#

But those symbols before and after

hallow flame
#

text ```

mystic pecan
#
    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```
hallow flame
#

NAH OMINDUPE CHAT WE FOUND A DUPE SERVER

mystic pecan
#

cool

brittle harbor
#

Are you sure that reloads? It looks like it should, but if it reloads it should show up

#

You have skbee installed?

mystic pecan
brittle harbor
#

Send sk info

hallow flame
#

relog*

#

i think

brittle harbor
mystic pecan
#

i did

brittle harbor
#

Oh yeah, youre on 1.17, right

hallow flame
brittle harbor
#

Youll need a different version of skbee.

mystic pecan
#

not 1.17.1

brittle harbor
hallow flame
#

yep

#

minehut plugin page never update the plugins or give uncompatible ones

mystic pecan
#

where do i download

#

nvm found it

brittle harbor
#

“Releases” on the right

mystic pecan
#

theres already an skbee in my files

hallow flame
#

don't delete the file

#

delete the .jar

#

it should look like that

mystic pecan
#

done im now restarting

hallow flame
#

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"

mystic pecan
#

lol

hallow flame
#

it's pretty outdated when i look at it

mystic pecan
hallow flame
mystic pecan
#

no

#

well

#

its what came out when i restarted with the updated version of skbee

#

x8ight

hallow flame
#

;-;

#

i mean the error are from your code

mystic pecan
#

do you see errors in it?

hallow flame
#

it should help reduce lag when i will work

mystic pecan
#

what?

#

im confused

hallow flame
#

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

mystic pecan
#

it says "" is not an item

hallow flame
#

yeah ik

brittle harbor
#

Send sk info

hallow flame
#

that is so weird lmao

mystic pecan
brittle harbor
hallow flame
#

skript info

mystic pecan
brittle harbor
#

Uninstall skquery

hallow flame
#

isn't it outadted?

brittle harbor
#

Its outdated and known for causing some issues

hallow flame
mystic pecan
#

i think i need skquery for the dupe skript

#

also it doesnt say that skbee is installed

hallow flame
#
give {_1} to player``` gg you did it
mystic pecan
#

wdym

hallow flame
#

for your dupe skript !

hallow flame
#

did you isntall the skbee.zip file?

mystic pecan
#

no

#

i installed the jar

brittle harbor
#

What about /pl?

mystic pecan
brittle harbor
hallow flame
#

hum where did you place the .jar?

brittle harbor
#

Why are there 2 skripts

hallow flame
#

did you place it in plugins or skript

hallow flame
#

the best thing about going in skunity is that you loose so many braincell you don't remember bad things in your life 🥰

mystic pecan
hallow flame
#

yes

#

destroy that yes button

mystic pecan
#

which do i del

hallow flame
#

skript.jar i think

#

not sure

mystic pecan
#

x8ight what do you think

hallow flame
#

ask x8ight

mystic pecan
#

how do we ping without pinging

hallow flame
#

you don't

mystic pecan
#

bet

brittle harbor
#

Both. Since youre not on 1.17, you can use latest

hallow flame
#

he's even outdated with skript 💀

mystic pecan
#

should i add the new one first

hallow flame
#

kul

#

add the resolved tag

mystic pecan
#

Bro it removed world guard 💀 :

#

how do i

brittle harbor
#

Right click on it in the channel list

#

Then edit tags

mystic pecan
#

i need help

#

again

#

x8ight