Apollo
Developers
Mods
Radio

Radio

Enjoy some of your favorite songs provided by Styngr.

Integration

How to toggle the mod

public void toggleRadioExample(Player viewer, boolean value) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
    apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModRadio.ENABLED, value));
}

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: true
  • SCALE

    • Config Key: scale
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.5F
      • Maximum: 1.5F
  • VOLUME

    • Config Key: volume
    • Values
      • Type: Integer
      • Default: 50
      • Minimum: 0
      • Maximum: 100
  • MUTE_RADIO

    • Config Key: mute-radio
    • Values
      • Type: Boolean
      • Default: false
  • BACKGROUND

    • Config Key: background
    • Values
      • Type: Boolean
      • Default: true
  • STATIC_BACKGROUND_WIDTH

    • If this is disabled the background will change size with the text.
    • Config Key: static-background-width
    • Values
      • Type: Boolean
      • Default: true
  • STATIC_BACKGROUND_HEIGHT

    • If this is disabled the background will change size with the text.
    • Config Key: static-background-height
    • Values
      • Type: Boolean
      • Default: true
  • BACKGROUND_WIDTH

    • Config Key: background-width
    • Values
      • Type: Integer
      • Default: 140
      • Minimum: 60
      • Maximum: 300
  • BACKGROUND_HEIGHT

    • Config Key: background-height
    • Values
      • Type: Integer
      • Default: 24
      • Minimum: 22
      • Maximum: 64
  • BORDER

    • Config Key: border
    • Values
      • Type: Boolean
      • Default: false
  • BORDER_THICKNESS

    • Config Key: border-thickness
    • Values
      • Type: Float
      • Default: 0.5F
      • Minimum: 0.5F
      • Maximum: 3.0F
  • BORDER_COLOR

    • Config Key: border-color
    • Values
      • Type: String
      • Default: #9F000000
  • BACKGROUND_COLOR

    • Config Key: background-color
    • Values
      • Type: String
      • Default: #6F000000
  • SHOW_COVER_ART

    • Config Key: show-cover-art
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_PROGRESS

    • Config Key: show-progress
    • Values
      • Type: Boolean
      • Default: true
  • SONG_SCROLL_ANIMATION

    • Config Key: song-scroll-animation
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_WHEN_NOTHING_PLAYING

    • Config Key: show-when-nothing-playing
    • Values
      • Type: Boolean
      • Default: false
  • BOLD_ARIST_NAME

    • Config Key: bold-arist-name
    • Values
      • Type: Boolean
      • Default: false
  • BOLD_SONG_NAME

    • Config Key: bold-song-name
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_DURATION

    • Config Key: show-duration
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_PLAY_BUTTON

    • Config Key: show-play-button
    • Values
      • Type: Boolean
      • Default: true
  • SONG_NAME_TEXT_COLOR

    • Config Key: song-name-text-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • ARTIST_NAME_TEXT_COLOR

    • Config Key: artist-name-text-color
    • Values
      • Type: String
      • Default: #FFFFFFFF
  • RADIO_PROGRESS_BAR_COLOR

    • Config Key: radio-progress-bar-color
    • Values
      • Type: String
      • Default: #FF4F94FC