forked from ChomeNS/chomens-bot-java
fix HTTP (minor problem)
This commit is contained in:
parent
11927ac373
commit
375bde4895
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue