forked from ChomeNS/chomens-bot-java
some more fixes
This commit is contained in:
parent
df73a5ec7d
commit
b4238ea016
2 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,8 @@ public class BossbarManagerPlugin extends Bot.Listener {
|
|||
}
|
||||
|
||||
public void packetReceived(ClientboundBossEventPacket packet) {
|
||||
if (!enabled || !bot.options().useCore()) return;
|
||||
|
||||
try {
|
||||
switch (packet.getAction()) {
|
||||
case ADD -> {
|
||||
|
|
|
@ -107,7 +107,7 @@ public class MusicPlayerPlugin extends Bot.Listener {
|
|||
|
||||
if (bossBar == null && bot.bossbar().enabled()) bossBar = addBossBar();
|
||||
|
||||
if (bot.bossbar().enabled()) {
|
||||
if (bot.bossbar().enabled() && bot.options().useCore()) {
|
||||
bossBar.setTitle(generateBossbar());
|
||||
bossBar.setColor(pitch > 0 ? BossBarColor.PURPLE : BossBarColor.YELLOW);
|
||||
bossBar.setValue((int) Math.floor(((double) currentSong.time / 1000) * speed));
|
||||
|
|
Loading…
Reference in a new issue