Files
KSpigot/docs/-k-spigot/net.axay.kspigot.config/k-spigot-json-config.md
bluefireoly 69b2e6cd17 Updated docs
2020-10-16 02:13:42 +02:00

1.1 KiB

title
title
kSpigotJsonConfig -

//KSpigot/net.axay.kspigot.config/kSpigotJsonConfig

kSpigotJsonConfig

[jvm]
Brief description

Creates a new ConfigDelegate object.

You can use this as a delegate (with by) or a normal object. (Delegate allows direct access to the config object, but does not provide save() or reload() methods.)

Parameters

jvm

Name Summary
default

Optional default config, which will be used if there is no config file and a new one should be created.

file

The path to the config.

T

The class type of the config.

Content
inline fun <T : Any> kSpigotJsonConfig(file: File, noinline default: () -> T?): ConfigDelegate<T>