Files
dfd3e81cc6 Add OnLicenseChanged plugin hook (#37871)
* Add OnLicenseChanged plugin hook

Notify plugins when the server license changes via SetLicense.
Returning an error does not roll back the license change, but
deactivates the plugin and marks it failed to stay running.

Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com>

* Drop error return from OnLicenseChanged hook

Match OnCloudLimitsUpdated: fire-and-forget notification with no
plugin deactivation on failure.

Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com>

* Set OnLicenseChanged minimum server version to 12.0

Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com>

* Document OnLicenseChanged startup behavior in hook godoc

Clarify that the hook is not invoked for the initial license load and
that plugins should use API.GetLicense() from OnActivate instead.

Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Julien Tant <JulienTant@users.noreply.github.com>
2026-08-26 10:21:32 -07:00
..
2026-08-21 15:59:19 +02:00
2026-08-21 15:59:19 +02:00