diff options
Diffstat (limited to 'src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt')
-rw-r--r-- | src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt b/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt new file mode 100644 index 0000000..682b109 --- /dev/null +++ b/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt @@ -0,0 +1,39 @@ +package tech.thatgravyboat.rewardclaim + +import gg.essential.universal.UDesktop +import gg.essential.vigilance.Vigilant +import gg.essential.vigilance.data.Property +import gg.essential.vigilance.data.PropertyType +import java.io.File +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 by accidently claim an reward you didn't want.") + var showConfirmation = true + + @Property(type = PropertyType.BUTTON, "Discord", "General", "Self Promotion", placeholder = "Visit") + fun discord() { + UDesktop.browse(URI("https://discord.gg/jRhkYFmpCa")) + } + + @Property(type = PropertyType.BUTTON, "Twitter", "General", "Self Promotion", placeholder = "Visit") + fun twitter() { + UDesktop.browse(URI("https://twitter.com/ThatGravyBoat")) + } + + @Property(type = PropertyType.BUTTON, "Github", "General", "Self Promotion", placeholder = "Visit") + fun github() { + UDesktop.browse(URI("https://github.com/ThatGravyBoat/RewardClaim")) + } + + @Property(type = PropertyType.BUTTON, "YouTube", "General", "Self Promotion", placeholder = "Visit") + fun rickroll() { + UDesktop.browse(URI("https://www.youtube.com/watch?v=dQw4w9WgXcQ")) + } + + init { + initialize() + } +}
\ No newline at end of file |