Skip to content

Commit 75e4380

Browse files
committed
TimeUpdate implementation (world-ticks in config)
1 parent 5279de5 commit 75e4380

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ Your donations are really appreciated. Donations wallets/links/cards:
3939

4040
- MasterCard Debit Card (Tinkoff Bank): ``5536 9140 0599 1975``
4141
- Qiwi Wallet: ``PFORG`` or [this link](https://my.qiwi.com/form/Petr-YSpyiLt9c6)
42-
- YooMoney Wallet: ``4100 1721 8467 044`` or [this link](https://yoomoney.ru/quickpay/shop-widget?writer=seller&targets=Donation&targets-hint=&default-sum=&button-text=11&payment-type-choice=on&mobile-payment-type-choice=on&hint=&successURL=&quickpay=shop&account=410017218467044)
43-
- PayPal: ``ogurec332@mail.ru``
42+
- YooMoney Wallet: ``4100 1721 8467 044`` or [this link](https://yoomoney.ru/quickpay/shop-widget?writer=seller&targets=Donation&targets-hint=&default-sum=&button-text=11&payment-type-choice=on&mobile-payment-type-choice=on&hint=&successURL=&quickpay=shop&account=410017218467044)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.4
1+
1.0.5

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
setGroup("net.elytrium")
13-
setVersion("1.0.4")
13+
setVersion("1.0.5")
1414

1515
java {
1616
setSourceCompatibility(JavaVersion.VERSION_11)
@@ -39,7 +39,7 @@ repositories {
3939
}
4040

4141
dependencies {
42-
compileOnly("net.elytrium:limboapi-api:1.0.4-SNAPSHOT")
42+
compileOnly("net.elytrium:limboapi-api:1.0.5")
4343

4444
compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
4545
annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")

src/main/java/net/elytrium/limboauth/LimboAuth.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ public void reload() throws Exception {
350350
this.authServer = this.factory
351351
.createLimbo(authWorld)
352352
.setName("LimboAuth")
353+
.setWorldTime(Settings.IMP.MAIN.WORLD_TICKS)
353354
.registerCommand(new LimboCommandMeta(this.filterCommands(Settings.IMP.MAIN.REGISTER_COMMAND)))
354355
.registerCommand(new LimboCommandMeta(this.filterCommands(Settings.IMP.MAIN.LOGIN_COMMAND)))
355356
.registerCommand(new LimboCommandMeta(this.filterCommands(Settings.IMP.MAIN.TOTP_COMMAND)));

src/main/java/net/elytrium/limboauth/Settings.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,12 @@ public static class MAIN {
122122
public String ALLOWED_NICKNAME_REGEX = "^[A-Za-z0-9_]{3,16}$";
123123

124124
public boolean LOAD_WORLD = false;
125-
@Comment("World file type: schematic (1.12.2 and lower), structure block .nbt (saved in the latest version)")
125+
@Comment("World file type: \"schematic\" (1.12.2 and lower, not recommended), \"structure\" block .nbt (saved in 1.17 - 1.18.2).")
126126
public String WORLD_FILE_TYPE = "structure";
127127
public String WORLD_FILE_PATH = "world.nbt";
128+
129+
@Comment("World time in ticks (24000 ticks == 1 in-game day)")
130+
public long WORLD_TICKS = 1000L;
128131
@Comment({
129132
"Custom isPremium URL",
130133
"You can use Mojang one's API (set by default)",

0 commit comments

Comments
 (0)