Skip to content

Feature - Totem Counter Module - #311

Open
ItsNature wants to merge 1 commit into
version/1.3.0from
feature/totem-counter-module
Open

ItsNature wants to merge 1 commit into
version/1.3.0from
feature/totem-counter-module

Conversation

@ItsNature

@ItsNature ItsNature commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

Description:
Add Totem Counter Module, letting servers set the totem pops shown by the client's Totem Counter Mod (nametag, tab list + HUD).

Changes:

  • Add TotemCounterModule API
    • overrideTotemCounters(Recipients, Collection<TotemCounter>)
    • overrideTotemCounter(Recipients, TotemCounter)
    • resetTotemCounter(Recipients, UUID)
    • resetTotemCounter(Recipients, TotemCounter)
    • resetTotemCounter(Recipients, Collection<UUID>)
    • resetTotemCounters(Recipients)
  • Add TotemCounter builder: playerUuid and pops
  • Add DISABLE_LOCAL_TRACKING config option

Code Example:

public void overrideTotemCounterExample(Player viewer) {
    Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());

    apolloPlayerOpt.ifPresent(apolloPlayer -> {
        this.totemCounterModule.overrideTotemCounter(apolloPlayer, TotemCounter.builder()
            .playerUuid(viewer.getUniqueId())
            .pops(3)
            .build()
        );
    });
}

Review Request Checklist

  • Your code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have tested this change myself. (If applicable)
  • I have made corresponding changes to the documentation. (If applicable)
  • The branch name follows the projects naming conventions. (e.g. feature/add-module & bugfix/fix-issue)

@ItsNature ItsNature added type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition labels Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition

Development

Successfully merging this pull request may close these issues.

1 participant