Apollo
Developers
Mods
Nametag

NameTags

A mod that allows you to modify nametags.

Integration

How to toggle the mod

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

Available options

  • ENABLED

    • Config Key: enabled
    • Values
      • Type: Boolean
      • Default: true
  • NAMETAG_SHADOW

    • Config Key: nametag-shadow
    • Values
      • Type: Boolean
      • Default: false
  • NAMETAG

    • An option to see your own nametag in third person
    • Config Key: nametag
    • Values
      • Type: Boolean
      • Default: true
  • TOGGLE_NAMETAGS

    • Determines if we should send the message when nametags are toggled.
    • Config Key: toggle-nametags
    • Values
      • Type: Boolean
      • Default: true
  • NAMETAG_BACKGROUND_OPACITY

    • Config Key: nametag-background-opacity
    • Values
      • Type: Float
      • Default: 1.0F
      • Minimum: 0.0F
      • Maximum: 1.0F