bombsquad-community / plugin-manager

A Plugin Manager for Bombsquad 1.7+
https://bombsquad-community.web.app/pluginmanager
Other
40 stars 29 forks source link

Show new plugins available message only for supported plugins #106

Closed rikkolovescats closed 1 year ago

rikkolovescats commented 1 year ago

Currently, if there's a plugin released that targets an API version not currently supported the client's game version, this client'll still see the "We got new Plugins for you to try!" screenmessage. Such clients shouldn't be receiving this screen message.

However, we currently only store the plugin count in config.json, so it'll currently not be possible to know what specific plugins are new, in order to check if this specified new plugin targets the current client API version or not:

https://github.com/bombsquad-community/plugin-manager/blob/436eb57715e27022faf096e5918fc036482a600b/plugin_manager.py#L278-L291

Perhaps once #64 gets implemented, then this can be picked up.