Skip to content

Releases: KapiMC/Kapi

v0.2.1

14 Oct 16:05
Compare
Choose a tag to compare

Fixed

  • Command @Literal annotations conflicting when method signature is identical.
  • Command tab completion sometime not suggesting arguments or suggesting wrong arguments.
  • Entity-based renders such as TextDisplayRender, BlockDisplayRender and ItemDisplayRender did not update their position every tick.

v0.2.0

19 Sep 17:59
Compare
Choose a tag to compare

Added

  • More number parsers in Utils class, for types such as short/int/long/float/double.
  • Log.Level.KAPI, for internal logging inside of Kapi.
    This should help with testing and debugging Kapi, while not cluttering the DEBUG level.
  • Command System:
    • Command class that can be extended to create a command.
    • @SubCommand annotation to mark methods inside a class that extends Command.
    • KapiPlugin#registerCommand(String, Command) to register a Command subclass.
    • ArgumentParser<T> to allow for parsing a generic type inside a subcommand method.
    • ArgumentRegistry to manage argument parsers and what classes they apply to.
    • Argument parsers can be implemented by users and registered in the registry,
      this allows users to create their own parsers for their own custom types.
    • Built-in argument parsers for primitives, any enums, arrays, List<T>, Option<T>, Location and Player.
    • Automatic reporting of possible subcommands to the user if no subcommands match.
  • SqliteDB to manage file-based Sqlite databases and QueryBuilder to ease the process of creating SqlQuery.

Deprecated

  • Utils#col24(String) should be replaced with Utils#col(String) which supports 24-bit "true color".
    See this website for how to format it.

v0.1.0

07 Sep 14:52
Compare
Choose a tag to compare

Added

  • Initial public release