use of gg.projecteden.nexus.features.radio.RadioUtils.getListenedRadio in project Nexus by ProjectEdenGG.
the class RadioCommand method songInfo.
@Path("info")
@Description("Shows info about the radio you are listening to")
void songInfo() {
Radio radio = RadioUtils.getListenedRadio(player(), true);
if (radio == null)
error("You are not listening to a radio!");
SongPlayer songPlayer = radio.getSongPlayer();
Song song = songPlayer.getSong();
send(PREFIX + "Radio Info:");
send("&3Radio: &e" + StringUtils.camelCase(radio.getId()));
List<String> list = RadioUtils.getPlaylistHover(radio);
send(json("&3Songs: &e[" + list.size() + "]").hover(list).loreize(false));
send("&3Playing: &e" + song.getTitle() + " &3by &e" + song.getAuthor() + " &3(" + getSongPercent(songPlayer) + "%)");
line();
}
Aggregations