From 80d8be7ebe921a7bc47769d809f714c7cb7ce603 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 22 Apr 2023 18:56:04 +0700 Subject: [PATCH] fart !!!! --- .idea/misc.xml | 5 ++ .idea/workspace.xml | 80 +++++++++---------- .../plugins/MusicPlayerPlugin.java | 5 +- 3 files changed, 47 insertions(+), 43 deletions(-) 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;