Player#isOnline is not thread safe
CraftBukkit 1.8.8 implementation checks whether Bukkit.getPlayer(<player uuid>) != null. Bukkit.getPlayer(UUID) is itself not thread safe.
This commit is contained in:
parent
b00850b19d
commit
b4ce4fbf68
|
@ -64,7 +64,7 @@ public class PlayerListener extends HandleMoveBase implements Listener {
|
|||
this.cancel();
|
||||
}
|
||||
}
|
||||
}.runTaskTimerAsynchronously(instance.getPlugin(), 0, 1);
|
||||
}.runTaskTimer(instance.getPlugin(), 0L, 1L);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue