use of com.xxmicloxx.NoteBlockAPI.model.Playlist in project Nexus by ProjectEdenGG.
the class RadioFeature method setupRadios.
private void setupRadios() {
RadioConfigService configService = new RadioConfigService();
RadioConfig radioConfig = configService.get0();
for (Radio radio : radioConfig.getRadios()) {
if (!radio.isEnabled())
continue;
Playlist playlist = radio.getPlaylist();
if (playlist == null || playlist.getSongList().size() <= 0) {
Nexus.severe(radio.getId() + " radio playlist is empty!");
continue;
}
createSongPlayer(radio, playlist);
}
configService.save(radioConfig);
}
Aggregations