跳到正文

TimeOutFix

作者:fr0zert

A simple Minecraft Fabric mod for 1.21.7 that allows you to overwrite the default server-side login timeout time.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

TimeoutFix

A simple Minecraft Fabric mod for 1.21.7 that allows you to overwrite the default server-side login timeout time, so players with slow internet connections (or heavy modpacks) don’t get disconnected before they finish downloading resources.

Usage

  1. Drop the mod .jar into your server’s mods folder.
  2. Start and stop the server. (so default config file is created) / or create manually before restart
  3. Edit the config file (config/TimeOutFixConfig.properties) to set your preferred timeout in server ticks.

Example: login_time_out=1800 Default value is 600 (30 seconds)

  1. Start / Restart the server.

Contributions

I accept pull requests and code improvements.
If you know Java better than me (which is likely), feel free to clean up or optimize the code / or optimize build system, this stuff is sucks in java idk how to use it.

Disclaimer

  • Tested only on Fabric 1.21.7 server.

Why I made this

I made this in about 1–2 hours, despite never having written Java before in my life.
So yes the code might be badly written.
But hey, it works.

This was created because I have a friend with terrible internet.
Our server has a lot of mods (like Emotecraft with server-side emotes), which means joining can take a while. Without this mod, players with slow downloads would get kicked for “Timed Out” before they even joined. This fixes that by letting the server wait longer.

常见问题

TimeOutFix 支持哪些 Minecraft 版本?

TimeOutFix 支持 Minecraft Java 版 1.21.7,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

TimeOutFix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分