forked from ChomeNS/chomens-bot-java
maybe patch the sus
This commit is contained in:
parent
44764e4e3f
commit
f1492a7a1b
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,9 @@ public class MusicCommand implements Command {
|
|||
|
||||
if (path.toString().contains("http")) player.loadSong(new URL(_path));
|
||||
else {
|
||||
// among us protection!!!11
|
||||
if (!path.normalize().startsWith(root.toString())) return Component.text("no").color(NamedTextColor.RED);
|
||||
|
||||
// ignore my ohio code for autocomplete
|
||||
final String separator = File.separator;
|
||||
|
||||
|
|
Loading…
Reference in a new issue