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 4e1a1c0..53675c9 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 @@ -102,7 +102,7 @@ public class MusicCommand extends Command { path = Path.of(root.toString(), _path); - if (path.toString().startsWith("http")) player.loadSong(new URL(_path)); + if (path.toString().contains("http")) player.loadSong(new URL(_path)); else { // among us protection!!!11 if (!path.normalize().startsWith(root.toString())) throw new CommandException(Component.text("no"));