Wait I think this is better

This commit is contained in:
GregTCLTK 2020-01-17 17:33:58 +01:00
parent 53a00f79c8
commit 9564eeab7d
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 2 additions and 2 deletions

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 {