haveachin / infrared

An ultra lightweight minecraft reverse proxy and idle placeholder
https://infrared.dev
GNU Affero General Public License v3.0
721 stars 58 forks source link

API for developers (like plugins for Bungeecord) #154

Open zLupa opened 1 year ago

zLupa commented 1 year ago

Is your feature request related to a problem? Please describe. I like this Minecraft proxy, it is lightweight and written in Go, but I've never seen an API somewhat usable for developers to extend its functionalities.

Describe the solution you'd like I would like an API for developers to extend its features, I was thinking of an implementation like BungeeCord's plugins, but I don't know if Go can load Go code on runtime, so maybe make Infrared as a library?

Describe alternatives you've considered I've tried gate you can import it as a library.

haveachin commented 1 year ago

This is a great idea. I'm already working on a REST API that can query live data from Infrared and do basic commands like disconnecting a player. There is also a public plugin API planned. At the moment you can already see a sort of preview in the rewrite branch: Current Plugin API, Example Plugin