Apollo
Developers
Mods
Ping

Ping

Displays server latency on a nametag or HUD.

Integration

How to toggle the mod

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

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: false
  • UPDATE_INTERVAL_SEC

    • Faster updates may impact performance
    • Config Key: update-interval-sec
    • Values
      • Type: Integer
      • Default: 15
      • Minimum: 1
      • Maximum: 30
  • ENABLE_PING_NAMETAG

    • Config Key: enable-ping-nametag
    • Values
      • Type: Boolean
      • Default: false
  • PING_ABOVE

    • Config Key: ping-above
    • Values
      • Type: Boolean
      • Default: true
  • PING_SHOW_MS

    • Config Key: ping-show-ms
    • Values
      • Type: Boolean
      • Default: true
  • PING_PREFIX_COLOR

    • Config Key: ping-prefix-color
    • Values
      • Type: String
      • Default: #55555555
  • DYNAMIC_PING_COLOR

    • Config Key: dynamic-ping-color
    • Values
      • Type: Boolean
      • Default: true
  • PING_NUMBER_COLOR

    • Config Key: ping-number-color
    • Values
      • Type: String
      • Default: #FFFFFF55
  • LOW_PING_NUMBER_COLOR

    • Config Key: low-ping-number-color
    • Values
      • Type: String
      • Default: #FF55FF55
  • MEDIUM_PING_NUMBER_COLOR

    • Config Key: medium-ping-number-color
    • Values
      • Type: String
      • Default: #FFFFFF55
  • HIGH_PING_NUMBER_COLOR

    • Config Key: high-ping-number-color
    • Values
      • Type: String
      • Default: #FFFF5555
  • EXTREME_PING_NUMBER_COLOR

    • Config Key: extreme-ping-number-color
    • Values
      • Type: String
      • Default: #FFAA0000