[SPIGOT-2584] API not catching that the player is sprinting Created: 09/Aug/16 Updated: 09/Aug/16 Resolved: 09/Aug/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Joe | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 0 |
Labels: | bug, spigot, spigot-api | ||
Environment: |
Centos 6.6, Java 8, Latest Spigot version |
Plugin: | My custom plugin |
Description |
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 |