Apollo
Developers
Mods
HitColor

Hit Color

Changes the color of the damage indicator.

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: hit-armor-color
    • Values
      • Type: String
      • Default: #66990000
  • SHOULD_COLOR_ARMOR

    • Config Key: should-color-armor
    • Values
      • Type: Boolean
      • Default: true