fart !!!!

This commit is contained in:
ChomeNS
2023-04-22 18:56:04 +07:00
parent 9956d3673a
commit 80d8be7ebe
3 changed files with 47 additions and 43 deletions

View File

@@ -132,12 +132,13 @@ public class MusicPlayerPlugin extends SessionAdapter {
handlePlaying();
if (currentSong.finished()) {
bot.chat().tellraw(Component.translatable("Finished playing %s", Component.empty().append(currentSong.name).color(NamedTextColor.GOLD)));
if (loop == Loop.CURRENT) {
currentSong.setTime(0);
return;
}
bot.chat().tellraw(Component.translatable("Finished playing %s", Component.empty().append(currentSong.name).color(NamedTextColor.GOLD)));
if (loop == Loop.ALL) {
skip();
return;