Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.57 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.57 KB

spectraldamagelogo

SpectralDamage

Asynchronous client-side (packets) damage indicator spigot plugin


forthebadge made-with-java

SpectralDamage is an open collaboration project by TwiDev.

Download
(Via spigotmc.org)

Supported versions: 1.8.X - 1.20

❔ What is SpectralDamage ?

Spectral Damage is a minecraft spigot plugin that allows you to display in the form of an animated hologram the damage that a player inflicts on a mob or another player

⚙️ API

Installation

Download API Jar here

Maven / gradle : soon

Add this line of code in the plugin.yml of your plugin so that the functions of the api work correctly, moreover do not forget to add the plugin spectraldamage.jar on your server.

softdepend:
  - SpectralDamage

Examples

Get Damage Type instante:

private static DamageTypeFactory NORMAL_DAMAGE;

@Override
public void onEnable(){
    NORMAL_DAMAGE = SpectralDamage.getInstance().getDamageTypeFactory(DamageType.NORMAL);
}    

Spawn Damage Indicator

SpectralDamage.getInstance().spawnDamageIndicator(player.getLocation(), NORMAL_DAMAGE, 10, true);