Great plugin, thanks!
Would be even better if you could add 2 additional API methods to get current and latest oxide version numbers.
Add API to get current and latest oxide versionSuggestion
You can easily pull that info from a simple web request and from the Oxide install itself.
I mean you already have web request implementation to check if new oxide is released, why don't you expose an API to get that info? At lease a bool IsNewOxideOut. In case, for example, to developer could add some additional logic before actually restart server (by this plugin) after new oxide is released, such as active online players count, wipe needed, some specific server events still active etc.
Of course I can get oxide version by implementing web request and even more, I can create own restarter plugin. I was about imroving this particular plugin usage cases, since I like it.
MONaH
I mean you already have web request implementation to check if new oxide is released, why don't you expose an API to get that info? At lease a bool IsNewOxideOut. In case, for example, to developer could add some additional logic before actually restart server (by this plugin) after new oxide is released, such as active online players count, wipe needed, some specific server events still active etc.
Of course I can get oxide version by implementing web request and even more, I can create own restarter plugin. I was about imroving this particular plugin usage cases, since I like it.
As I said - you can still call this method as a hook, but it is not intended to be exposed in context of this particular plugin, so it will not be somehow documented here.