LiquidBounce icon indicating copy to clipboard operation
LiquidBounce copied to clipboard

Kotlin addons

Open Ell1ott opened this issue 1 year ago • 2 comments

LiquidBounce Branch

Nextgen

Describe your feature request.

Similar to the current js scripts, you would be able to write add-ons in kotlin. I would say this has a few advantages:

  • Speed - I belive kotlin runs much more performant than Javascript
  • Bindings - When doing it directly in kotlin you would be able to use all the same events etc. As the build in modules
  • References - If you would like to add a new module, but you're new to scripting/programming, it's always great having a base, to then expand on top of. With kotlin any of the build in modules could be used as bases and references for new add-ons
  • From pr to own addon - If someone wants to merge a feature into liquidbounce, but It gets rejected, because it for example a too little user base would use the feature, it could easily be refactored into an addon
  • Typesafety - I belive kotlin has better typesafety and autocomplete

Additional context

No response

Ell1ott avatar Jun 01 '24 21:06 Ell1ott

It would be easy to add something like that, but pretty hard to create such add-ons. But it would allow to share more complex additions without forking the entire project.

@1zun4 @SenkJu opinion?

superblaubeere27 avatar Jun 02 '24 13:06 superblaubeere27

I think it would be strange to have two different plugin APIs (Kotlin and JavaScript). It's something we will have to consider carefully.

SenkJu avatar Jun 02 '24 13:06 SenkJu