Skip to content

Commit

Permalink
Use Entity Id's instead of Player Name
Browse files Browse the repository at this point in the history
  • Loading branch information
SplotyCode committed Feb 14, 2018
1 parent 806e3c2 commit b513e6d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -26,7 +26,8 @@ public SelfHit() {
}

public boolean check(final Player damager, final Player damaged, final FightData data, final FightConfig cc){
if (!damager.getName().equals(damaged.getName())) return false;
// Check if the Entity Id's are Equals
if (damager.getEntityId() != damaged.getEntityId()) return false;

boolean cancel = false;
// Treat self hitting as instant violation.
Expand Down

0 comments on commit b513e6d

Please sign in to comment.