fix HTTP (minor problem)

This commit is contained in:
Chayapak 2023-09-22 17:25:32 +07:00
parent 11927ac373
commit 375bde4895

View file

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