Decrease timeout limit to prevent main thread waiting too long

This commit is contained in:
Dreeam 2024-06-02 21:19:52 +08:00
parent 32ed70f099
commit a8e18d1bb8
No known key found for this signature in database
GPG Key ID: 0998F8AFD8F667AB
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ public final class PluginSettings implements SettingsHolder {
@Comment({ @Comment({
"Send i18n messages to player based on their client settings, this option will override `settings.messagesLanguage`", "Send i18n messages to player based on their client settings, this option will override `settings.messagesLanguage`",
"(Requires Protocollib if server version under 1.15.2)", "(Requires Protocollib or Packetevents)",
"This will not affect language of AuthMe help command." "This will not affect language of AuthMe help command."
}) })
public static final Property<Boolean> I18N_MESSAGES = public static final Property<Boolean> I18N_MESSAGES =

View File

@ -52,7 +52,7 @@ public class I18NUtils {
return PLAYER_LOCALE.get(player.getUniqueId()); return PLAYER_LOCALE.get(player.getUniqueId());
} }
if (System.currentTimeMillis() - startTime > 3000) { if (System.currentTimeMillis() - startTime > 500) {
return null; return null;
} }
} }