aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/config/LedgerConfig.kt
blob: 367f1e28a2c15fb001b4110cd6010791b7cefb0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package moe.nea.ledger.config

import io.github.notenoughupdates.moulconfig.Config
import io.github.notenoughupdates.moulconfig.DescriptionRendereringBehaviour
import io.github.notenoughupdates.moulconfig.annotations.Category
import io.github.notenoughupdates.moulconfig.processor.ProcessedOption
import moe.nea.ledger.Ledger

class LedgerConfig : Config() {
	override fun getTitle(): String {
		return "§6Ledger §7- §6Hypixel SkyBlock data logger §7by §anea89o"
	}

	override fun saveNow() {
		super.saveNow()
		Ledger.managedConfig.saveToFile()
	}

	override fun getDescriptionBehaviour(option: ProcessedOption?): DescriptionRendereringBehaviour {
		return DescriptionRendereringBehaviour.EXPAND_PANEL
	}

	@Category(name = "Synchronization", desc = "")
	@JvmField
	val synchronization = SynchronizationOptions()

	@Category(name = "Debug", desc = "")
	@JvmField
	val debug = DebugOptions()

}