Sprint boolean returns on event

Discussion in 'Spigot Plugin Help' started by dnsuyz, Jul 10, 2018.

Thread Status:
Not open for further replies.
  1. Hello, I have a problem.
    Sprint boolean returning false in EntityDamageByEntity and EntityDamageEvent. It happens when someone hits the player and this damaged player also hits him. I tried PlayerToggleSprintEvent, but it does not work.

    I just want to reduce knockback when the player wtaps, blockhitting.

    if (victim.isSprinting () == false) - both players getting antiknockback
    if (victim.isSprinting () == true) - works, but It's still bugging :/

    I tried to search repair for this bug, but I didn't succed
     
Thread Status:
Not open for further replies.