forked from ChomeNS/chomens-bot-java
fix the thing
This commit is contained in:
parent
7a3b5f4baf
commit
ca271067f9
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,9 @@ public class MusicCommand extends Command {
|
|||
Path path;
|
||||
try {
|
||||
_path = String.join(" ", Arrays.copyOfRange(args, 1, args.length));
|
||||
|
||||
if (_path.isBlank()) return Component.text("No song specified").color(NamedTextColor.RED);
|
||||
|
||||
path = Path.of(root.toString(), _path);
|
||||
|
||||
if (path.toString().contains("http")) player.loadSong(new URL(_path));
|
||||
|
|
Loading…
Reference in a new issue