Buggy code:
public class Medikit extends CItem { int HealAmount ; public Medikit ( String originalName , ChatColor color , String lDescription , long lCooldown , Material mat ) { } @ Override public boolean effect ( Event event , Player player ) { if ( event instanceof PlayerInteractEvent ) { PlayerInteractEvent e = ( ( PlayerInteractEvent ) ( event ) ) ; if ( e . getAction ( ) . toString ( ) . startsWith ( "RIGHT" ) ) { double maxHealth = ( ( org . bukkit . entity . Damageable ) ( player ) ) . getMaxHealth ( ) ; if ( ( ( ( org . bukkit . entity . Damageable ) ( player ) ) . getHealth ( ) ) != maxHealth ) { if ( ( ( ( ( org . bukkit . entity . Damageable ) ( player ) ) . getHealth ( ) ) + ( HealAmount ) ) >= maxHealth ) player . setHealth ( maxHealth ) ; else player . setHealth ( ( ( ( ( org . bukkit . entity . Damageable ) ( player ) ) . getHealth ( ) ) + ( HealAmount ) ) ) ; return true ; } else player . sendMessage ( ( ( ChatColor . RED ) + "You<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>any<seq2seq4repair_space>wounds<seq2seq4repair_space>to<seq2seq4repair_space>apply<seq2seq4repair_space>the<seq2seq4repair_space>Medikit<seq2seq4repair_space>to!" ) ) ; } } else if ( ( event instanceof PlayerInteractEntityEvent ) || ( event instanceof EntityDamageByEntityEvent ) ) { Player toHeal = null ; if ( event instanceof PlayerInteractEntityEvent ) { toHeal = ( ( PlayerInteractEntityEvent ) ( event ) ) . getPlayer ( ) ; } else if ( event instanceof EntityDamageByEntityEvent ) { EntityDamageByEntityEvent e = ( ( EntityDamageByEntityEvent ) ( event ) ) ; if ( ( ( e . getDamager ( ) ) == player ) && ( ( e . getEntity ( ) ) instanceof Player ) ) { <START_BUG> e . setDamage ( ( ( double ) ( 0 ) ) ) ; <END_BUG> toHeal = ( ( Player ) ( e . getEntity ( ) ) ) ; } } if ( toHeal != null ) { double maxHealth = ( ( org . bukkit . entity . Damageable ) ( toHeal ) ) . getMaxHealth ( ) ; if ( ( ( ( org . bukkit . entity . Damageable ) ( toHeal ) ) . getHealth ( ) ) != maxHealth ) { if ( ( ( ( ( org . bukkit . entity . Damageable ) ( toHeal ) ) . getHealth ( ) ) + ( HealAmount ) ) >= maxHealth ) toHeal . setHealth ( maxHealth ) ; else toHeal . setHealth ( ( ( ( ( org . bukkit . entity . Damageable ) ( toHeal ) ) . getHealth ( ) ) + ( HealAmount ) ) ) ; player . sendMessage ( ( ( ( ( ChatColor . GREEN ) + "You<seq2seq4repair_space>have<seq2seq4repair_space>healed<seq2seq4repair_space>" ) + ( toHeal . getName ( ) ) ) + "<seq2seq4repair_space>using<seq2seq4repair_space>the<seq2seq4repair_space>Medikit!" ) ) ; toHeal . sendMessage ( ( ( ( ChatColor . GREEN ) + ( player . getName ( ) ) ) + "<seq2seq4repair_space>has<seq2seq4repair_space>used<seq2seq4repair_space>a<seq2seq4repair_space>Medikit<seq2seq4repair_space>to<seq2seq4repair_space>heal<seq2seq4repair_space>you!" ) ) ; return true ; } else player . sendMessage ( ( ( ChatColor . RED ) + "Your<seq2seq4repair_space>target<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>any<seq2seq4repair_space>wounds<seq2seq4repair_space>to<seq2seq4repair_space>apply<seq2seq4repair_space>the<seq2seq4repair_space>Medikit<seq2seq4repair_space>to!" ) ) ; } } return false ; } @ Override public void initConfigEntries ( ) { } }

Fix:
e . setDamage ( 0 ) ;