Skip to content

Commit

Permalink
Delay proxy check by a few ticks to hopefully make it more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Mar 26, 2023
1 parent ee042e3 commit ae2886c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -221,7 +221,7 @@ public void onLeave(PlayerQuitEvent e) {
@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)
Expand Down

0 comments on commit ae2886c

Please sign in to comment.