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:
A248 2020-04-20 16:02:58 -04:00
parent b00850b19d
commit b4ce4fbf68
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class PlayerListener extends HandleMoveBase implements Listener {
this.cancel();
}
}
}.runTaskTimerAsynchronously(instance.getPlugin(), 0, 1);
}.runTaskTimer(instance.getPlugin(), 0L, 1L);
}
}