Added silent playing and destroying players on quit

This commit is contained in:
Anthony committed 2018-03-05 09:33:45 -05:00
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.isConnected()) {
if (player.isConnectedTo(vChannel)) { if (player.isConnectedTo(vChannel)) {
player.play(args.split(" ")[0], event.getTextChannel()); player.play(args.split(" ")[0], event.getTextChannel(), false);
} else } else
event.getTextChannel().sendMessage("Not in your voice channel").queue(); event.getTextChannel().sendMessage("Not in your voice channel").queue();
} else } 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); String youtubeCode = YoutubeClass.getCodeFromUrl(url);
System.out.println(youtubeCode); System.out.println(youtubeCode);