diff --git a/pom.xml b/pom.xml index 0ef051012..f559d511a 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ com.sedmelluq lavaplayer - 1.3.19 + LATEST com.jagrosh diff --git a/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java b/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java index 6309d200f..34dd65ebb 100644 --- a/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java +++ b/src/main/java/com/jagrosh/jmusicbot/audio/PlayerManager.java @@ -38,9 +38,6 @@ public PlayerManager(Bot bot) public void init() { - AudioSourceManagers.registerRemoteSources(this); - AudioSourceManagers.registerLocalSource(this); - source(YoutubeAudioSourceManager.class).setPlaylistPageCount(10); if(bot.getConfig().isNicoNicoEnabled()) { registerSourceManager( new NicoAudioSourceManager( @@ -48,6 +45,10 @@ public void init() bot.getConfig().getNicoNicoPassword()) ); } + + AudioSourceManagers.registerRemoteSources(this); + AudioSourceManagers.registerLocalSource(this); + source(YoutubeAudioSourceManager.class).setPlaylistPageCount(10); } public Bot getBot()