aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-06-08 15:34:37 +0300
committerPetr Ilin <hevav@hevav.dev>2022-06-08 15:34:37 +0300
commit75e4380dd19610eaeaac7787dce5ba9461c12350 (patch)
tree133507597c0cd75b6ae7bda868fdd3720ab1198b /src
parent5279de54cfe7e66b262892f25e2a5a965a05ee4c (diff)
downloadLimboAuth-75e4380dd19610eaeaac7787dce5ba9461c12350.tar.gz
LimboAuth-75e4380dd19610eaeaac7787dce5ba9461c12350.tar.bz2
LimboAuth-75e4380dd19610eaeaac7787dce5ba9461c12350.zip
TimeUpdate implementation (world-ticks in config)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/elytrium/limboauth/LimboAuth.java1
-rw-r--r--src/main/java/net/elytrium/limboauth/Settings.java5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java
index 55fee88..eb052fe 100644
--- a/src/main/java/net/elytrium/limboauth/LimboAuth.java
+++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java
@@ -350,6 +350,7 @@ public class LimboAuth {
this.authServer = this.factory
.createLimbo(authWorld)
.setName("LimboAuth")
+ .setWorldTime(Settings.IMP.MAIN.WORLD_TICKS)
.registerCommand(new LimboCommandMeta(this.filterCommands(Settings.IMP.MAIN.REGISTER_COMMAND)))
.registerCommand(new LimboCommandMeta(this.filterCommands(Settings.IMP.MAIN.LOGIN_COMMAND)))
.registerCommand(new LimboCommandMeta(this.filterCommands(Settings.IMP.MAIN.TOTP_COMMAND)));
diff --git a/src/main/java/net/elytrium/limboauth/Settings.java b/src/main/java/net/elytrium/limboauth/Settings.java
index 43e1fe6..a6f188a 100644
--- a/src/main/java/net/elytrium/limboauth/Settings.java
+++ b/src/main/java/net/elytrium/limboauth/Settings.java
@@ -122,9 +122,12 @@ public class Settings extends YamlConfig {
public String ALLOWED_NICKNAME_REGEX = "^[A-Za-z0-9_]{3,16}$";
public boolean LOAD_WORLD = false;
- @Comment("World file type: schematic (1.12.2 and lower), structure block .nbt (saved in the latest version)")
+ @Comment("World file type: \"schematic\" (1.12.2 and lower, not recommended), \"structure\" block .nbt (saved in 1.17 - 1.18.2).")
public String WORLD_FILE_TYPE = "structure";
public String WORLD_FILE_PATH = "world.nbt";
+
+ @Comment("World time in ticks (24000 ticks == 1 in-game day)")
+ public long WORLD_TICKS = 1000L;
@Comment({
"Custom isPremium URL",
"You can use Mojang one's API (set by default)",