Skip to content

Commit

Permalink
Added own name for the sake of publishing it
Browse files Browse the repository at this point in the history
Not that I want to take credit, I just don't want to publish anything under someone's else's name.
  • Loading branch information
Jakub Šindelář committed Dec 16, 2021
1 parent 6a8bdbd commit eb3a5a5
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 16 deletions.
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
# TimeOut Out
# TimeOut Out (Fabric)

This mod is the connection timeout configuration from [Random Patches](https://github.com/TheRandomLabs/RandomPatches) standalone because it hasn't updated to 1.17 or 1.18.
Read the [Random Patches README](https://github.com/TheRandomLabs/RandomPatches) for config information.
This mod is the connection timeout configuration from [Random Patches](https://github.com/TheRandomLabs/RandomPatches) standalone because it hasn't updated to 1.18.

Read the [Random Patches README](https://github.com/TheRandomLabs/RandomPatches) for full config information.
Also hopefully the maintainer will start updating the mod again and this project will be allowed to die.

## Features

Features without a specified side are server-sided.

### Connection timeouts

In vanilla Minecraft, the connection timeouts are hardcoded, and often not long enough for
slower computers or heavier modded instances. To counter this, TimeOutOut allows several
connection timeouts to be configured:

* The connection read timeout
* Both client and server-sided
* Raised to 120 seconds from the vanilla value of 30 seconds by default
* The login timeout
* How long the server waits for a player to log in
* Raised to 2400 ticks (120 seconds) from the vanilla value of 600 ticks (30 seconds) by default
* The KeepAlive timeout
* How long the server waits for a player to return a KeepAlive packet before disconnecting them
* Raised to 120 seconds from the vanilla value of 30 seconds by default

In addition, RandomPatches allows the interval at which KeepAlive packets are sent to clients
to be configured, although it is recommended that this be left at the vanilla value of 15 seconds.

## Download

* You can directly download from [Releases page on Github](https://github.com/houby-studio/TimeOutOut/releases/latest)
* You can also download from [CurseForge](https://www.curseforge.com/minecraft/mc-mods/timeoutout-fabric)
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G

# Mod Properties
mod_version = 1.0.0+1.18
maven_group = us.potatoboy
maven_group = eu.houbystudio
archives_base_name = timeoutout

# Dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package us.potatoboy.timeoutout;
package eu.houbystudio.timeoutout;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package us.potatoboy.timeoutout;
package eu.houbystudio.timeoutout;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package us.potatoboy.timeoutout.mixin;
package eu.houbystudio.timeoutout.mixin;

import eu.houbystudio.timeoutout.TimeOutOut;
import org.spongepowered.asm.mixin.Debug;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;
import us.potatoboy.timeoutout.TimeOutOut;

@Debug(export = true)
@Mixin(targets = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package us.potatoboy.timeoutout.mixin;
package eu.houbystudio.timeoutout.mixin;

import eu.houbystudio.timeoutout.TimeOutOut;
import net.minecraft.server.network.ServerLoginNetworkHandler;
import net.minecraft.text.Text;
import net.minecraft.text.TranslatableText;
Expand All @@ -9,7 +10,6 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import us.potatoboy.timeoutout.TimeOutOut;

@Mixin(ServerLoginNetworkHandler.class)
public final class ServerLoginNetworkHandlerMixin {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package us.potatoboy.timeoutout.mixin;
package eu.houbystudio.timeoutout.mixin;

import eu.houbystudio.timeoutout.TimeOutOut;
import net.minecraft.server.network.ServerPlayNetworkHandler;
import net.minecraft.text.Text;
import net.minecraft.util.Util;
Expand All @@ -9,7 +10,6 @@
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
import org.spongepowered.asm.mixin.injection.Redirect;
import us.potatoboy.timeoutout.TimeOutOut;

@Mixin(ServerPlayNetworkHandler.class)
public final class ServerPlayNetworkHandlerKeepAliveMixin {
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
"name": "TimeOut Out",
"description": "Allows configuration of timeout values",
"authors": [
"Potatoboy9999"
"Potatoboy9999",
"Megastary"
],
"contact": {
"homepage": "https://fabricmc.net/",
"sources": "https://github.com/FabricMC/fabric-example-mod"
"sources": "https://github.com/houby-studio/TimeOutOut"
},
"license": "MIT",
"environment": "*",
"entrypoints": {
"main": [
"us.potatoboy.timeoutout.TimeOutOut"
"eu.houbystudio.timeoutout.TimeOutOut"
]
},
"mixins": [
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/timeoutout.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "us.potatoboy.timeoutout.mixin",
"package": "eu.houbystudio.timeoutout.mixin",
"compatibilityLevel": "JAVA_16",
"mixins": [
"ChannelInitializerMixin",
Expand Down

0 comments on commit eb3a5a5

Please sign in to comment.