Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sya-ri/ktconfig
Spigot configuration library using Kotlin data classes.
https://github.com/sya-ri/ktconfig
kotlin kotlin-library kotlin-reflect minecraft-plugin minecraft-server paper-api paper-library paper-plugin paper-server spigot-api spigot-library spigot-plugin spigot-server
Last synced: 17 days ago
JSON representation
Spigot configuration library using Kotlin data classes.
- Host: GitHub
- URL: https://github.com/sya-ri/ktconfig
- Owner: sya-ri
- License: mit
- Created: 2022-10-25T09:17:21.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-10T15:56:54.000Z (about 1 month ago)
- Last Synced: 2024-10-11T03:51:44.547Z (about 1 month ago)
- Topics: kotlin, kotlin-library, kotlin-reflect, minecraft-plugin, minecraft-server, paper-api, paper-library, paper-plugin, paper-server, spigot-api, spigot-library, spigot-plugin, spigot-server
- Language: Kotlin
- Homepage: https://gh.s7a.dev/ktConfig
- Size: 1.31 MB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ktConfig
> [!WARNING]
> This library is under development, so you can't use it.Spigot configuration library using Kotlin data classes.
```kotlin
class Main : JavaPlugin() {
@Comment("config.yml", "This is header comments")
data class SimpleConfig(
val message: String = "You can use default values"
)override fun onEnable() {
val config = this.ktConfigFile("config.yml", SimpleConfig())
logger.info(config.message)
}
}
``````yaml
# config.yml
# This is header commentsmessage: You can use default values
```## 🔗 Links
- [Website](https://gh.s7a.dev/ktConfig)
- [API Document](https://gh.s7a.dev/ktConfig/api-docs)## 🔑 License
```
MIT LicenseCopyright (c) 2022 sya-ri
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```