This commit is contained in:
HaHaWTH
2024-03-25 20:26:27 +08:00
parent 3a8bd1d826
commit fe06f06a11
2 changed files with 12 additions and 1 deletions
@@ -189,7 +189,7 @@ public class AsynchronousJoin implements AsynchronousProcess {
if (service.getProperty(RegistrationSettings.APPLY_BLIND_EFFECT)) {
// Allow infinite blindness effect
int blindTimeOut = (registrationTimeout <= 0) ? 99999 : registrationTimeout;
player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, blindTimeOut, 2));
bukkitService.runTask(player,() -> player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, blindTimeOut, 2)));
}
commandManager.runCommandsOnJoin(player);
});