fix: useCore disabled keep spamming tag add in music

This commit is contained in:
ChomeNS
2025-09-07 18:23:46 +07:00
parent b19d093a11
commit 7991ad6c49
2 changed files with 4 additions and 3 deletions

View File

@@ -1 +1 @@
3656
3658

View File

@@ -173,6 +173,8 @@ public class MusicPlayerPlugin implements Listener {
}
public void addTag (final UUID uuid) {
if (!bot.options.useCore) return;
bot.core.run(
String.format(
"minecraft:tag %s add %s",
@@ -233,9 +235,8 @@ public class MusicPlayerPlugin implements Listener {
if (bossBar == null) bossBar = addBossBar();
if (bossBar != null && !bossBar.gotSecret) addTag(bot.profile.getId());
if (bossBar != null && bot.options.useCore) {
if (!bossBar.gotSecret) addTag(bot.profile.getId());
bossBar.setTitle(generateBossBar());
bossBar.setColor(bossBarColor);
bossBar.setValue((int) Math.floor(((currentSong.time / speed) / 1000)));