=Work on Music integration

This commit is contained in:
Alex Stewart
2019-07-30 14:50:20 -07:00
parent 74ebd38fe5
commit dd828282d3
3 changed files with 42 additions and 2 deletions
+3 -2
View File
@@ -55,7 +55,7 @@ public class ObjectBuilderFactory
private static CommandManager commandManager;
//Audio track manager
AudioPlayerManager audioPlayer = new DefaultAudioPlayerManager();
private static AudioPlayerManager audioPlayer = new DefaultAudioPlayerManager();
// Localization classes - these are singletons, but should be initialized before almost all other
// things so their inclusion in the factory is to ensure they're started at the correct time.
@@ -147,7 +147,8 @@ public class ObjectBuilderFactory
else
{
// Construct a new guild with defaults
guild = new KittyGuild(uid, new AdminControl(event.getGuild()), emotesString, new AudioUtils(event.getGuild()));
guild = new KittyGuild(uid, new AdminControl(event.getGuild()), emotesString,
new AudioUtils(event.getGuild(), audioPlayer.createPlayer()));
DatabaseManager.instance.globalRegister(guild);
guildCache.put(uid, guild);
}