flying-squid icon indicating copy to clipboard operation
flying-squid copied to clipboard

Dynamically load plugin

Open louis030195 opened this issue 3 years ago • 4 comments

In Mineflayer we can do bot.loadPlugin(foo) but I don't see that in flying-squid ?

Also would be nice to document on how to implement plugins in Typescript (since it seems Typescript is "a little bit" supported by Prismarine in general ?), especially for Typescript noobs like me.

louis030195 avatar Nov 01 '20 09:11 louis030195

There is serv.addPlugin but why not just put your plugin in the config ?

On Sun, Nov 1, 2020, 10:57 Louis Beaumont [email protected] wrote:

In Mineflayer we can do bot.loadPlugin(foo) but I don't see that in flying-squid ?

Also would be nice to document on how to implement plugins in Typescript (since it seems Typescript is "a little bit" supported by Prismarine in general ?), especially for Typescript noobs like me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/flying-squid/issues/458, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437UDQ7W6NT3M3RY3LVLSNUWHJANCNFSM4TGNRKYA .

rom1504 avatar Nov 01 '20 12:11 rom1504

What's the use case of dynamically loading plugins ?

On Sun, Nov 1, 2020, 13:04 Romain Beaumont [email protected] wrote:

There is serv.addPlugin but why not just put your plugin in the config ?

On Sun, Nov 1, 2020, 10:57 Louis Beaumont [email protected] wrote:

In Mineflayer we can do bot.loadPlugin(foo) but I don't see that in flying-squid ?

Also would be nice to document on how to implement plugins in Typescript (since it seems Typescript is "a little bit" supported by Prismarine in general ?), especially for Typescript noobs like me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/flying-squid/issues/458, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437UDQ7W6NT3M3RY3LVLSNUWHJANCNFSM4TGNRKYA .

rom1504 avatar Nov 01 '20 12:11 rom1504

depending on previous code I want to load just a specific plugin

louis030195 avatar Nov 01 '20 12:11 louis030195

What's the use case of dynamically loading plugins ?

If you, say, wanted to make a plugin to install other plugins (similar to the Spigot PlugManX), and wanted those other plugins to not require a server restart to be loaded. Pretty niche, however still a use-case.

djfjfofoc3 avatar Mar 20 '22 18:03 djfjfofoc3