Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-2584

API not catching that the player is sprinting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor 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

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

              Created:
              Updated:
              Resolved: