Skip to content

Commit

Permalink
TimeUpdate implementation (world-ticks in config)
Browse files Browse the repository at this point in the history
  • Loading branch information
hevav committed Jun 8, 2022
1 parent 5279de5 commit 75e4380
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ Your donations are really appreciated. Donations wallets/links/cards:

- MasterCard Debit Card (Tinkoff Bank): ``5536 9140 0599 1975``
- Qiwi Wallet: ``PFORG`` or [this link](https://my.qiwi.com/form/Petr-YSpyiLt9c6)
- 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)
- PayPal: ``ogurec332@mail.ru``
- 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)
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.4
1.0.5
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

setGroup("net.elytrium")
setVersion("1.0.4")
setVersion("1.0.5")

java {
setSourceCompatibility(JavaVersion.VERSION_11)
Expand Down Expand Up @@ -39,7 +39,7 @@ repositories {
}

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

compileOnly("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
annotationProcessor("com.velocitypowered:velocity-api:3.1.2-SNAPSHOT")
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/elytrium/limboauth/LimboAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ public void reload() throws Exception {
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)));
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/net/elytrium/limboauth/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,12 @@ public static class MAIN {
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)",
Expand Down

0 comments on commit 75e4380

Please sign in to comment.