-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
None
-
Centos 6.6, Java 8, Latest Spigot version
-
My custom plugin
I have a simple task which runs every 10 ticks that broadcasts if the player is sprinting or not,
Bukkit.getScheduler().scheduleSyncRepeatingTask(Main.getInstance(), () -> { for(Player p : Bukkit.getOnlinePlayers()){ if(p.isSprinting()){ Bukkit.broadcastMessage(p.getName()+" is sprinting"); } } }, 0L, 10L);
The isSprinting is returning false when the player sprints then hits another player even though they are sprinting.
Youtube link: https://www.youtube.com/watch?v=iFqBfD2PAfM