This commit is contained in:
HaHaWTH 2024-03-25 16:36:27 +08:00
parent 1c759b2476
commit 4f88d15f8e

View File

@ -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);
});