API not catching that the player is sprinting

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      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

            Assignee:
            Unassigned
            Reporter:
            Joe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: