Delay proxy check by a few ticks to hopefully make it more reliable

This commit is contained in:
ajgeiss0702
2023-03-26 09:18:57 -07:00
parent ee042e31c7
commit ae2886ca9f
@@ -221,7 +221,7 @@ public class SpigotMain extends JavaPlugin implements PluginMessageListener,List
@EventHandler
public void onJoin(PlayerJoinEvent e) {
if(hasProxy) return;
Bukkit.getScheduler().runTask(this, () -> sendMessage(e.getPlayer(), "ack", ""));
Bukkit.getScheduler().runTaskLater(this, () -> sendMessage(e.getPlayer(), "ack", ""), 5);
}
@EventHandler(priority = EventPriority.HIGH)