Vendetta/API/update state
From Quasar-RCE
Jump to navigationJump to search
Definition
lib.update_state (string id, string version, table state_data) :: nil
Description
Allows editing of a plugin's state data post-registration
Arguments
- string id: name of the mod to be activated
- string version: version of the mod to be activated
- table state_data: settings to adjust in table format. see below.
Returns
- nil
Other notes
- Added in LME 3.11.0
valid state data entries:
Key | Description |
---|---|
complete | Allows the plugin to trigger its own failure state and prevent any dependent plugins from running if they haven't already.
This cannot unload code that's already running. Use in hybrid mods to disable themselves easily. Plugins cannot mark themselves as ‘complete’; this value can only be `false` or not exist. |
name | Allows the plugin to change its registered display name. Not recommended. |
link | Allows the plugin to change the ‘link’ read from its INI file (or set one, if no link was originally provided). |
plugin_name | Same as `name`. |
plugin_link | Same as `link`. |
err_details | If the plugin is marking itself as incomplete to indicate a self-caught error, this string is added to the LME log display. |