aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-07-12 00:49:08 +0300
committerPetr Ilin <hevav@hevav.dev>2022-07-12 00:49:08 +0300
commit19c4bb18b0faca802360c050d02f0abfd7ca0059 (patch)
treed65862142e7dea7cbc58424dc9aea4035ac13945 /src/main
parent04bc79eb268465eca21c1b681e0cb4497a455a06 (diff)
downloadLimboAuth-19c4bb18b0faca802360c050d02f0abfd7ca0059.tar.gz
LimboAuth-19c4bb18b0faca802360c050d02f0abfd7ca0059.tar.bz2
LimboAuth-19c4bb18b0faca802360c050d02f0abfd7ca0059.zip
Ability to change the world light level
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/elytrium/limboauth/LimboAuth.java2
-rw-r--r--src/main/java/net/elytrium/limboauth/Settings.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/net/elytrium/limboauth/LimboAuth.java b/src/main/java/net/elytrium/limboauth/LimboAuth.java
index 373e96c..d0345fc 100644
--- a/src/main/java/net/elytrium/limboauth/LimboAuth.java
+++ b/src/main/java/net/elytrium/limboauth/LimboAuth.java
@@ -345,7 +345,7 @@ public class LimboAuth {
}
Settings.MAIN.WORLD_COORDS coords = Settings.IMP.MAIN.WORLD_COORDS;
- file.toWorld(this.factory, authWorld, coords.X, coords.Y, coords.Z);
+ file.toWorld(this.factory, authWorld, coords.X, coords.Y, coords.Z, Settings.IMP.MAIN.WORLD_LIGHT_LEVEL);
} catch (IOException e) {
e.printStackTrace();
}
diff --git a/src/main/java/net/elytrium/limboauth/Settings.java b/src/main/java/net/elytrium/limboauth/Settings.java
index 23b7215..7a1a29c 100644
--- a/src/main/java/net/elytrium/limboauth/Settings.java
+++ b/src/main/java/net/elytrium/limboauth/Settings.java
@@ -130,6 +130,9 @@ public class Settings extends YamlConfig {
@Comment("World time in ticks (24000 ticks == 1 in-game day)")
public long WORLD_TICKS = 1000L;
+ @Comment("World light level (from 0 to 15)")
+ public int WORLD_LIGHT_LEVEL = 15;
+
@Comment("Available: ADVENTURE, CREATIVE, SURVIVAL, SPECTATOR")
public String GAME_MODE = "ADVENTURE";