fix the thing

This commit is contained in:
Chayapak 2023-08-20 09:50:22 +07:00
parent 7a3b5f4baf
commit ca271067f9

View file

@ -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));