From 4f88d15f8e8828b0e19ab2b6f8669978297da212 Mon Sep 17 00:00:00 2001 From: HaHaWTH Date: Mon, 25 Mar 2024 16:36:27 +0800 Subject: [PATCH] Format --- .../java/fr/xephi/authme/process/join/AsynchronousJoin.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java index 911a1d20..bc097276 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsynchronousJoin.java @@ -189,9 +189,13 @@ public class AsynchronousJoin implements AsynchronousProcess { if (service.getProperty(RegistrationSettings.APPLY_BLIND_EFFECT)) { // Allow infinite blindness effect int blindTimeOut = (registrationTimeout <= 0) ? 99999 : registrationTimeout; + + // AuthMeReReloaded start - Fix async potion apply on Folia bukkitService.runTask(() -> { player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, blindTimeOut, 2)); }); + // AuthMeReReloaded end + } commandManager.runCommandsOnJoin(player); });