Use Bot#getConfig() instead of using a public static config & Add missing newline

This commit is contained in:
MichailiK
2019-10-25 19:48:41 +02:00
parent f17058a344
commit 0b4c6c9af1
34 changed files with 57 additions and 81 deletions
@@ -17,7 +17,6 @@ package com.jagrosh.jmusicbot.commands.music;
import com.jagrosh.jdautilities.command.CommandEvent;
import com.jagrosh.jmusicbot.Bot;
import com.jagrosh.jmusicbot.JMusicBot;
import com.jagrosh.jmusicbot.audio.AudioHandler;
import com.jagrosh.jmusicbot.commands.MusicCommand;
import net.dv8tion.jda.core.Permission;
@@ -34,7 +33,7 @@ public class NowplayingCmd extends MusicCommand
super(bot);
this.name = "nowplaying";
this.help = "shows the song that is currently playing";
this.aliases = JMusicBot.config.getAliases(this.name);
this.aliases = bot.getConfig().getAliases(this.name);
this.botPermissions = new Permission[]{Permission.MESSAGE_EMBED_LINKS};
}