Some stuff lol

This commit is contained in:
GregTCLTK 2020-01-17 17:33:29 +01:00
parent 76886f1bf8
commit 53a00f79c8
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67

View file

@ -12,7 +12,7 @@ public class VolumeCommand implements Command {
@Override
public void executed(String[] args, CommandEvent event) {
if (args.length > 0) {
if (args.length == 1) {
if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() != null) {
if (event.getMember().getVoiceState().inVoiceChannel() && event.getGuild().getSelfMember().getVoiceState().inVoiceChannel() && event.getGuild().getSelfMember().getVoiceState().getChannel().equals(event.getMember().getVoiceState().getChannel())) {
try {