#Playtime Timer in Bossbar

1 messages · Page 1 of 1 (latest)

nocturne grove
#

current issue: how do i run a runTaskTimer every second always when the server is online

#

should i just run it on server startup?

#

(as in onEnable)

subtle remnant
#

Yes

nocturne grove
#

alr

#

lemme do a bit of coding to see if i got this right

#
        BukkitScheduler scheduler = Bukkit.getScheduler();
        scheduler.runTaskTimer(this, () -> {
            Bukkit.broadcastMessage("Hello!");
        },0L * 0L,20L * 1L);```
?
subtle remnant
#

That’ll probably do it

nocturne grove
#

okie, lemme try it out

#

yep! it works

#

ok next thing: how do i make individual bossbars for each player?

subtle remnant
nocturne grove
#

how do i create one?

nocturne grove
#

how do i use that?

#

in code

subtle remnant
#

?java

#

Hmph

#

Doesn’t work in here

nocturne grove
#

that won't really help either, it'll just be offensive

subtle remnant
#

It’s not offensive

nocturne grove
#

to me, it is

subtle remnant
#

You have to know the language before you can program in it

nocturne grove
#

i know some and this is how i learn, now if you're gonna be rude about it then please leave

subtle remnant
#

Lmao the only person being rude here is you

#

Ive been nothing but helpful

#

Have a nice day