Decrease timeout limit to prevent main thread waiting too long
This commit is contained in:
parent
32ed70f099
commit
a8e18d1bb8
@ -21,7 +21,7 @@ public final class PluginSettings implements SettingsHolder {
|
||||
|
||||
@Comment({
|
||||
"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."
|
||||
})
|
||||
public static final Property<Boolean> I18N_MESSAGES =
|
||||
|
||||
@ -52,7 +52,7 @@ public class I18NUtils {
|
||||
return PLAYER_LOCALE.get(player.getUniqueId());
|
||||
}
|
||||
|
||||
if (System.currentTimeMillis() - startTime > 3000) {
|
||||
if (System.currentTimeMillis() - startTime > 500) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user