diff --git a/.idea/misc.xml b/.idea/misc.xml index 67e1e61..7472fa6 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,10 @@ + + + + + - - - + - { - "keyToString": { - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "git-widget-placeholder": "master", - "jdk.selected.JAVA_MODULE": "17", - "last_opened_file_path": "/home/chayapak1/IdeaProjects/chomens-bot-java", - "project.structure.last.edited": "Modules", - "project.structure.proportion": "0.0", - "project.structure.side.proportion": "0.0", - "settings.editor.selected.configurable": "preferences.pluginManager" + +}]]> @@ -97,27 +95,6 @@ @@ -455,9 +453,6 @@ - - - @@ -480,7 +475,10 @@ - diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java index 09f6fa9..2742a0f 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java @@ -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;