Apollo
Developers
Mods
TotemCounter

Totem Counter

Keep track of players' totem usages. Totem pops aren't tracked when the mod is disabled, so toggling it on mid-game could result in a mismatch.

Integration

How to toggle the mod

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

Available options

  • ENABLED

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

    • Config Key: show-for-self
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_TAB_LIST

    • Config Key: show-tab-list
    • Values
      • Type: Boolean
      • Default: true
  • FLIP

    • Config Key: flip
    • Values
      • Type: Boolean
      • Default: false
  • COUNT_COLOR

    • Config Key: count-color
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_NAMETAG

    • Config Key: show-nametag
    • Values
      • Type: Boolean
      • Default: true
  • SHOW_PREFIX

    • Config Key: show-prefix
    • Values
      • Type: Boolean
      • Default: false
  • SEPARATE_NAMETAG

    • Config Key: separate-nametag
    • Values
      • Type: Boolean
      • Default: false
  • RENDER_FIRST

    • Config Key: render-first
    • Values
      • Type: Boolean
      • Default: false
  • PREFIX_COLOR

    • Config Key: prefix-color
    • Values
      • Type: String
      • Default: #FFFFFF55