Bass Command #329

Merged
greg6775 merged 23 commits from greg-dev into master 2020-01-17 17:59:53 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 9564eeab7d - Show all commits

View file

@ -14,7 +14,7 @@ public class BassCommand implements Command {
@Override
public void executed(String[] args, CommandEvent event) {
if (args.length == 1) {
if (args.length > 0) {
float value = Float.parseFloat(args[0]);
EqualizerFactory equalizer = new EqualizerFactory();
for (int i = 0; i < BASS_BOOST.length; i++) {

View file

@ -12,7 +12,7 @@ public class VolumeCommand implements Command {
@Override
public void executed(String[] args, CommandEvent event) {
if (args.length == 1) {
if (args.length > 0) {
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 {