GithubHelp home page GithubHelp logo

heroslender / ethos Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 39 KB

A ORM for configuration files with support for Bukkit's YAML

License: MIT License

Java 100.00%
bukkit bukkit-api configuration configuration-management java

ethos's Introduction

Hello there stranger ๐Ÿ‘‹

I'm Bruno, also known as Heroslender, and I make plugins for bukkit servers. If you feel interested check some of them below ๐Ÿ‘‡๐Ÿ‘‡
Ohh, and don't forget to hop into my discord server if you'd like to get more updated info on what I'm currently working on!

GitHub Youtube Instagram Twitter Discord

ethos's People

Contributors

dependabot[bot] avatar heroslender avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ethos's Issues

Allow to register new adapters

Add a method to the adapter factory, allowing for new adapters to be registered, e.g.

BukkitConfigurationLoader.TYPE_ADAPTER_FACTORY.registerTypeAdapter(yourTypeAdapter);

or even directly through the BukkitConfigurationLoader, e.g.

BukkitConfigurationLoader.registerTypeAdapter(yourTypeAdapter);

New module adding kotlin extensions

Add a new module featuring enhancements for the kotlin language.

Suggested enchancements

  • Delegate for loading configurations
val config: Config by configurationLoader(Main.instance)
  • Extension functions to instantiate the ConfigurationLoader without the need to provide the Class, through reified types
val configurationLoader = newBukkitConfigurationLoader<YourConfig>(config, saveConfig)

Add annotations for validating config input

Add some annotations for validating the input data.

Suggested validators:

  • @Min
    For numbers represents the minimum value, for lists and maps, represents the minimum size.

  • @Max
    Same as @Min but for the maximum value.

  • @Pattern
    String or strings in a list should match the given pattern.

  • @Values
    String or strings in a list should match any of the given values.

Handling invalid data

  • Find a way to handle invalid input data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.