From 5b8fa78acfb74a701ec035f7cfafa57c3f4788e6 Mon Sep 17 00:00:00 2001
From: ChomeNS <95471003+ChomeNS@users.noreply.github.com>
Date: Sun, 30 Apr 2023 11:18:53 +0700
Subject: [PATCH] fix error i guess
---
.idea/workspace.xml | 39 +++++++++----------
.../chomens_bot/commands/MusicCommand.java | 10 +++--
2 files changed, 26 insertions(+), 23 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8018aa1..db364b5 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,9 @@
-
-
+
-
+
@@ -100,20 +99,6 @@
1680245437032
-
- 1682122055989
-
-
-
- 1682122055990
-
-
- 1682130155082
-
-
-
- 1682130155082
-
1682131432220
@@ -443,7 +428,21 @@
1682730825558
-
+
+ 1682823137043
+
+
+
+ 1682823137045
+
+
+ 1682823229424
+
+
+
+ 1682823229424
+
+
@@ -458,7 +457,6 @@
-
@@ -483,7 +481,8 @@
-
+
+
diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java
index 13151c8..43ebd16 100644
--- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java
+++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/MusicCommand.java
@@ -275,11 +275,15 @@ public class MusicCommand implements Command {
final MusicPlayerPlugin music = context.bot().music();
if (music.currentSong() == null) return Component.text("No song is currently playing").color(NamedTextColor.RED);
+ context.sendOutput(
+ Component.empty()
+ .append(Component.text("Skipping "))
+ .append(music.currentSong().name.color(NamedTextColor.GOLD))
+ );
+
music.skip();
- return Component.empty()
- .append(Component.text("Skipping "))
- .append(music.currentSong().name.color(NamedTextColor.GOLD));
+ return null;
}
public Component nowplaying (CommandContext context) {