mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-08 00:47:34 +01:00
Fix bungee message order (login -> connect)
This commit is contained in:
parent
6f1c63e693
commit
c38e2aba28
@ -158,7 +158,7 @@ public class AsynchronousJoin implements AsynchronousProcess {
|
||||
// As described at https://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/
|
||||
// "Keep in mind that you can't send plugin messages directly after a player joins."
|
||||
bukkitService.scheduleSyncDelayedTask(() ->
|
||||
bungeeSender.sendAuthMeBungeecordMessage(player, MessageType.LOGIN), 10L);
|
||||
bungeeSender.sendAuthMeBungeecordMessage(player, MessageType.LOGIN), 5L);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -305,7 +305,7 @@ public class AsynchronousLogin implements AsynchronousProcess {
|
||||
// As described at https://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/
|
||||
// "Keep in mind that you can't send plugin messages directly after a player joins."
|
||||
bukkitService.scheduleSyncDelayedTask(() ->
|
||||
bungeeSender.sendAuthMeBungeecordMessage(player, MessageType.LOGIN), 10L);
|
||||
bungeeSender.sendAuthMeBungeecordMessage(player, MessageType.LOGIN), 5L);
|
||||
}
|
||||
|
||||
// As the scheduling executes the Task most likely after the current
|
||||
|
@ -85,7 +85,7 @@ public class BungeeSender implements SettingsDependent {
|
||||
}
|
||||
// Add a small delay, just in case...
|
||||
bukkitService.scheduleSyncDelayedTask(() ->
|
||||
sendBungeecordMessage(player, "Connect", destinationServerOnLogin), 5L);
|
||||
sendBungeecordMessage(player, "Connect", destinationServerOnLogin), 10L);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user