Mineplex/GOD DAMN COSMETICS/gadget/gadgets/death/DeathCupidsBrokenHeart.java
Daniel Waggner 38a20f98c2 Removed Files
These two directories contain code that was removed from the src and dependencies of the compiled files. They were removed due to being either a. unnecessary or b. a royal pain in my booty.
2021-05-23 18:13:37 -07:00

36 lines
1.1 KiB
Java

package mineplex.core.gadget.gadgets.death;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import mineplex.core.blood.BloodEvent;
import mineplex.core.common.util.LineFormat;
import mineplex.core.common.util.UtilParticle;
import mineplex.core.common.util.UtilParticle.ParticleType;
import mineplex.core.common.util.UtilParticle.ViewDist;
import mineplex.core.common.util.UtilText;
import mineplex.core.gadget.GadgetManager;
import mineplex.core.gadget.types.DeathEffectGadget;
public class DeathCupidsBrokenHeart extends DeathEffectGadget
{
public DeathCupidsBrokenHeart(GadgetManager manager)
{
super(manager, "Cupid's Broken Heart",
UtilText.splitLineToArray("Cue the weeping violins...", LineFormat.LORE),
-2, Material.APPLE, (byte) 0, "Broken Hearted");
}
@Override
public void onBlood(Player player, BloodEvent event)
{
event.setCancelled(true);
Location loc = player.getLocation().add(0, 0.9, 0);
UtilParticle.PlayParticleToAll(ParticleType.HEART, loc, 0.3f, 0.7f, 0.3f, 0, 15, ViewDist.NORMAL);
}
}