summaryrefslogtreecommitdiff
path: root/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2022-04-22 15:18:09 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2022-04-22 15:18:09 -0230
commita3f64c9a041d483e24fe06043aed2b7aeeed454c (patch)
treed9f8b7d67a734270aa22395359af41a8be96c1ec /src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt
parent502915cd06103a59c1a64d4c9c97cb1eef400068 (diff)
downloadRewardClaim-a3f64c9a041d483e24fe06043aed2b7aeeed454c.tar.gz
RewardClaim-a3f64c9a041d483e24fe06043aed2b7aeeed454c.tar.bz2
RewardClaim-a3f64c9a041d483e24fe06043aed2b7aeeed454c.zip
Update to fix Hypixel changev1.0.5
Diffstat (limited to 'src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt')
-rw-r--r--src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt57
1 files changed, 51 insertions, 6 deletions
diff --git a/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt b/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt
index 8cc2f6d..b2a784d 100644
--- a/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt
+++ b/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt
@@ -10,28 +10,73 @@ import java.net.URI
@Suppress("unused")
object Config : Vigilant(File("./config/rewardclaim.toml")) {
- @Property(type = PropertyType.SWITCH, "Show Confirmation", "General", description = "Shows a confirmation before you claim an item to make sure you don't accidentally claim a reward you didn't want.")
+ @Property(
+ type = PropertyType.SWITCH,
+ name = "Show Confirmation",
+ category = "General",
+ description = "Shows a confirmation before you claim an item to make sure you don't accidentally claim a reward you didn't want."
+ )
var showConfirmation = true
- @Property(type = PropertyType.SWITCH, "Show Double Click Confirmation", "General", description = "Shows a confirmation before you double click claim an item to make sure you don't accidentally claim a reward you didn't want.")
+ @Property(
+ type = PropertyType.SWITCH,
+ name = "Show Double Click Confirmation",
+ category = "General",
+ description = "Shows a confirmation before you double click claim an item to make sure you don't accidentally claim a reward you didn't want."
+ )
var showDoubleClickConfirmation = true
- @Property(type = PropertyType.BUTTON, "Discord", "General", "Self Promotion", placeholder = "Visit")
+ @Property(
+ type = PropertyType.NUMBER,
+ name = "Checking timer",
+ category = "General",
+ description = "Determines how long it will take to check and ignore screen changes, if you are high ping you may want this higher.",
+ min = 1000,
+ max = 10000,
+ increment = 200
+ )
+ var checkingTimer = 3000
+
+ @Property(
+ type = PropertyType.BUTTON,
+ name = "Discord",
+ category = "General",
+ subcategory = "Self Promotion",
+ placeholder = "Visit"
+ )
fun discord() {
UDesktop.browse(URI("https://discord.gg/jRhkYFmpCa"))
}
- @Property(type = PropertyType.BUTTON, "Twitter", "General", "Self Promotion", placeholder = "Visit")
+ @Property(
+ type = PropertyType.BUTTON,
+ name = "Twitter",
+ category = "General",
+ subcategory = "Self Promotion",
+ placeholder = "Visit"
+ )
fun twitter() {
UDesktop.browse(URI("https://twitter.com/ThatGravyBoat"))
}
- @Property(type = PropertyType.BUTTON, "Github", "General", "Self Promotion", placeholder = "Visit")
+ @Property(
+ type = PropertyType.BUTTON,
+ name = "Github",
+ category = "General",
+ subcategory = "Self Promotion",
+ placeholder = "Visit"
+ )
fun github() {
UDesktop.browse(URI("https://github.com/ThatGravyBoat/RewardClaim"))
}
- @Property(type = PropertyType.BUTTON, "YouTube", "General", "Self Promotion", placeholder = "Visit")
+ @Property(
+ type = PropertyType.BUTTON,
+ name = "YouTube",
+ category = "General",
+ subcategory = "Self Promotion",
+ placeholder = "Visit"
+ )
fun rickroll() {
UDesktop.browse(URI("https://www.youtube.com/watch?v=dQw4w9WgXcQ"))
}