Do not encapsulate the task twice in Velocity

This commit is contained in:
games647
2024-02-13 16:38:47 +01:00
parent 6ec6e4844d
commit cd3cfef6d4

View File

@ -166,7 +166,7 @@ public class ConnectListener {
// player is still in the login phase and reported to be offline.
Runnable loginTask = new ForceLoginTask(plugin.getCore(), player, server, session);
plugin.getProxy().getScheduler()
.buildTask(plugin, () -> plugin.getScheduler().runAsync(loginTask))
.buildTask(plugin, loginTask)
.delay(1L, TimeUnit.SECONDS) // Delay at least one second, otherwise the login command can be missed
.schedule();
}