Max joins per second

When this option is set to true the `max-joins-per-tick` setting in paper.yml will be used per second instead of per tick
This commit is contained in:
BillyGalbreath
2025-01-12 14:21:17 -08:00
committed by granny
parent eb5eda7a8b
commit f551cb43d0
3 changed files with 25 additions and 47 deletions

View File

@@ -450,8 +450,10 @@ public class PurpurConfig {
}
public static boolean useUPnP = false;
public static boolean maxJoinsPerSecond = false;
private static void networkSettings() {
useUPnP = getBoolean("settings.network.upnp-port-forwarding", useUPnP);
maxJoinsPerSecond = getBoolean("settings.network.max-joins-per-second", maxJoinsPerSecond);
}
public static Pattern usernameValidCharactersPattern;