Skip to Content

Cooldowns

Allows servers to display items or abilities that are on cooldown on the HUD.

Integration

How to toggle the mod

public void toggleCooldownsExample(Player viewer, boolean value) { Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId()); apolloPlayerOpt.ifPresent(apolloPlayer -> this.modSettingModule.getOptions().set(apolloPlayer, ModCooldowns.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.25F
      • Maximum: 5.0F
  • COOLDOWN_CIRCLE_START_COLOR

    • Config Key: cooldown-circle-start-color
    • Values
      • Type: String
      • Default: #99595959
  • COOLDOWN_CIRCLE_END_COLOR

    • Config Key: cooldown-circle-end-color
    • Values
      • Type: String
      • Default: #FFE5E5E5
  • COOLDOWN_EDGE_COLOR

    • Config Key: cooldown-edge-color
    • Values
      • Type: String
      • Default: #FF404040
  • TEXT_COLOR

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