aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium/limboauth/Settings.java
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-02-07 07:19:15 +0300
committerPetr Ilin <hevav@hevav.dev>2022-02-07 07:19:15 +0300
commit11dc5edc485a93d05eb2485ad80b4df7afbde6d9 (patch)
tree07bcc31d0a2b8b2b6702ff2dc314eb8f2be24c6d /src/main/java/net/elytrium/limboauth/Settings.java
parenta322bd93e4e4d22ed7805d66d1545c39de87fd38 (diff)
downloadLimboAuth-11dc5edc485a93d05eb2485ad80b4df7afbde6d9.tar.gz
LimboAuth-11dc5edc485a93d05eb2485ad80b4df7afbde6d9.tar.bz2
LimboAuth-11dc5edc485a93d05eb2485ad80b4df7afbde6d9.zip
Title settings
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/Settings.java')
-rw-r--r--src/main/java/net/elytrium/limboauth/Settings.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/main/java/net/elytrium/limboauth/Settings.java b/src/main/java/net/elytrium/limboauth/Settings.java
index 432dc97..5ce38ab 100644
--- a/src/main/java/net/elytrium/limboauth/Settings.java
+++ b/src/main/java/net/elytrium/limboauth/Settings.java
@@ -19,6 +19,8 @@ package net.elytrium.limboauth;
import java.io.File;
import net.elytrium.limboauth.config.Config;
+import net.kyori.adventure.title.Title;
+import net.kyori.adventure.util.Ticks;
public class Settings extends Config {
@@ -121,6 +123,36 @@ public class Settings extends Config {
public int Z = 0;
}
+ @Create
+ public Settings.MAIN.CRACKED_TITLE_SETTINGS CRACKED_TITLE_SETTINGS;
+
+ public static class CRACKED_TITLE_SETTINGS {
+
+ public int FADE_IN = 10;
+ public int STAY = 70;
+ public int FADE_OUT = 20;
+ public boolean CLEAR_AFTER_LOGIN = false;
+
+ public Title.Times toTimes() {
+ return Title.Times.of(Ticks.duration(this.FADE_IN), Ticks.duration(this.STAY), Ticks.duration(this.FADE_OUT));
+ }
+
+ }
+
+ @Create
+ public Settings.MAIN.PREMIUM_TITLE_SETTINGS PREMIUM_TITLE_SETTINGS;
+
+ public static class PREMIUM_TITLE_SETTINGS {
+
+ public int FADE_IN = 10;
+ public int STAY = 70;
+ public int FADE_OUT = 20;
+
+ public Title.Times toTimes() {
+ return Title.Times.of(Ticks.duration(this.FADE_IN), Ticks.duration(this.STAY), Ticks.duration(this.FADE_OUT));
+ }
+ }
+
/*
@Create
public Settings.MAIN.EVENTS_PRIORITIES EVENTS_PRIORITIES;