I'm trying to figure out how to get how big a combo is and even if they get a combo, in my case a combo is 3 hits long (without the other player hitting you) here's what i tried:
@EventHandler
public void onDamage(EntityDamageByEntityEvent e){
if(e.getEntity() instanceof Player && e.getDamager() instanceof Player){
Player hitter = (Player)e.getDamager();
Player hit = (Player)e.getEntity();
for(HitEvent hitE : showers.getHitEvents()){...
Calculating how big/if a player gets a combo
Code (Text):
@EventHandler
public void onDamage(EntityDamageByEntityEvent e){
if(e.getEntity() instanceof Player && e.getDamager() instanceof Player){
Player hitter = (Player)e.getDamager();
Player hit = (Player)e.getEntity();
for(HitEvent hitE : showers.getHitEvents()){...