mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-04 09:27:30 +02:00
Merge pull request #46 from 369David369/SelfHitFix
Use Entity Id's instead of Player Name for SelfHit
This commit is contained in:
commit
f2ba25b51a
@ -26,7 +26,8 @@ public class SelfHit extends Check {
|
||||
}
|
||||
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user