Перейти к содержимому
Mineforgian

Teh

Floating Damage/Heal/XP Indicator

Загрузки
482
Подписчики
7
Обновлён
1 июля 2025 г.
Лицензия
GPL-3.0-only

Опубликован 8 июня 2025 г.

Teh - Floating Damage/Heal/XP Indicator

Features

  • Animated floating text for damage, healing, XP gain/loss
  • Fully customizable colors, icons, and messages via config.yml
  • MiniMessage support (true color, icons, advanced formatting)
  • All display settings (see-through, background, shadow, alignment, billboard) are configurable
  • XP loss indicators and separate color for XP loss
  • Only shows indicators to players who have them enabled (per-player visibility)
  • PlaceholderAPI support: %teh_enabled% placeholder for player indicator state

Quick Config Example

indicator-colors:
  hp-lost: '#FF3B30'
  hp-gain: '#34C759'
  xp-gain: '#5EDE3E'
  xp-lost: '#FFAA00'
messages:
  damage:
    template: "<color:{indicator_color}>{icon} -{amount} {type}</color>"
    icons:
      ENTITY_ATTACK: "🗡"
  heal:
    template: "<color:{indicator_color}>✨ +{amount} {type}</color>"
  xp-gain:
    template: "<color:{indicator_color}>🟢 +{amount} XP</color>"
  xp-lost:
    template: "<color:{indicator_color}>🔴 -{amount} XP</color>"
display-settings:
  see-through: true
  background-color: '#00000080'
  shadowed: true
  alignment: center
  billboard: true

PlaceholderAPI

If PlaceholderAPI is installed, Teh registers the following placeholder:

Placeholder Description
%teh_enabled% Returns Enabled or Disabled for a player (whether indicators are enabled for them)

Usage Example:

  • In chat plugins, scoreboards, etc: %teh_enabled%

Permissions

  • teh.indicator.toggle — Use /toggleteh
  • teh.reload — Use /tehreload

Commands

  • /toggleteh — Toggle your indicator visibility
  • /tehreload — Reload all config at runtime

Soft Dependencies

  • PlaceholderAPI (for placeholders)

Damage Replace this with a description

Healing Replace this with a description

Ченджлог

1.3Релиз26.1, 26.1.1, 26.1.2 · 1 июля 2025 г.

Add PlaceholderAPI support (%teh_enabled%), softdepend, and update README

  • Implement PlaceholderAPI expansion: %teh_enabled% returns per-player indicator state
  • Register expansion if PlaceholderAPI is present
  • Add PlaceholderAPI as softdepend in plugin.yml
  • Update README: document PlaceholderAPI usage, features, config, permissions, and commands
  • Enable by default
1.2Релиз1.21.5, 1.21.6, 1.21.7 · 1 июля 2025 г.

fix: ignore suffocation damage indicators for armor stands

  • Updated onEntityDamage handler to skip showing indicators for SUFFOCATION damage on armor stands.
  • Prevents indicator spam when armor stands are pushed in the walls.

Show indicators only to players who have enabled them via /toggleteh (using showEntity). If no one has it enabled, remove the display immediately. Matches reference repo logic. Fully dynamic, per-player visibility.

1.1Релиз1.21.5, 1.21.6, 1.21.7 · 1 июля 2025 г.

feat: Fully configurable, true-color, MiniMessage-based indicator system

  • Refactored indicator message system to use MiniMessage templates with true hex color support.
  • All indicator messages (damage, heal, XP gain/loss) are now fully configurable via config.yml using placeholders: {indicator_color}, {icon}, {amount}, {type}.
  • {indicator_color} now injects the actual hex color code into MiniMessage <color:...> tags for real color rendering.
  • Removed all hardcoded color logic from event handlers; color is now controlled by config and MiniMessage.
  • Updated DamageDisplayUtil to accept and display Component objects, not plain strings.
  • Centralized all config loading and template/icon logic in ConfigManager.
  • Updated default/fallback templates in ConfigManager to use MiniMessage and color tags.
  • Improved config documentation and placeholder usage for server owners.
  • /tehreload command reloads all config, templates, and icons at runtime.
1.0-SNAPSHOTБета1.21.4, 1.21.5, 1.21.6 · 8 июня 2025 г.

init release

Комментарии

Загружаем…