fix: useCore disabled keep spamming tag add in music
This commit is contained in:
@@ -1 +1 @@
|
||||
3656
|
||||
3658
|
||||
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user