Added silent playing and destroying players on quit
This commit is contained in:
1 parent
d67c2e3afb
commit
fffe3cf328
2 files changed
+2
-2
No files matched your search
@@ -54,7 +54,7 @@ public class PlayCommand extends AbstractCommand {
|
||||
|
||||
if (player.isConnected()) {
|
||||
if (player.isConnectedTo(vChannel)) {
|
||||
player.play(args.split(" ")[0], event.getTextChannel());
|
||||
player.play(args.split(" ")[0], event.getTextChannel(), false);
|
||||
} else
|
||||
event.getTextChannel().sendMessage("Not in your voice channel").queue();
|
||||
} else
|
||||
|
||||
@@ -96,7 +96,7 @@ public class MusicManager {
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void play(String url, TextChannel channel, boolean silent) {
|
||||
public synchronized void play(String url, TextChannel channel, boolean silent ) {
|
||||
|
||||
String youtubeCode = YoutubeClass.getCodeFromUrl(url);
|
||||
System.out.println(youtubeCode);
|
||||
|
||||
Reference in new issue
Block a user