make access password mandatory

This commit is contained in:
Sen 2025-05-26 20:29:08 +02:00
parent 5f49d6c036
commit 435e3f3e29
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
5 changed files with 35 additions and 7 deletions

View file

@ -435,7 +435,7 @@ public abstract class Config {
public static int eggTimer = 6000;
@Var(name = "connectionTimeout", min = 10, max = 300)
public static int timeout = 30;
@Var(name = "passwordMinLength", min = 1, max = 32)
@Var(name = "passwordMinLength", min = 8, max = 32)
public static int minPassLength = 8;
@Var(name = "port", min = 1024, max = 32767, nonDefault = true)
public static int port = -1;
@ -459,7 +459,7 @@ public abstract class Config {
@Var(name = "spawnPitch", min = -89.0f, max = 89.0f)
public static float spawnPitch = 0.0f;
@Var(name = "password")
@Var(name = "password", nonDefault = true)
public static String password = "";
static {