#Playtime Timer in Bossbar
1 messages · Page 1 of 1 (latest)
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)
Yes
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);```
?
That’ll probably do it
okie, lemme try it out
yep! it works
ok next thing: how do i make individual bossbars for each player?
declaration: package: org.bukkit.boss, interface: BossBar
how do i create one?
declaration: package: org.bukkit, class: Bukkit
that won't really help either, it'll just be offensive
Here are some links to get you started on learning Java:
- https://www.codecademy.com/learn/learn-java
- https://www.sololearn.com/learning/1068
- https://www.learnjavaonline.org/
- https://programmingbydoing.com/
- https://docs.oracle.com/javase/tutorial/java/index.html
The last one is the only official one, however some of those concepts assume that you already know a bit about programming.
It’s not offensive
to me, it is
You have to know the language before you can program in it
i know some and this is how i learn, now if you're gonna be rude about it then please leave