remove Plugin Player Pref
Removes a plugin-specific preference.
This method deletes a preference key from a plugin's namespace. If the removal results in an empty plugin namespace, the entire namespace is removed to keep the data structure clean.
Cleanup Behavior: The method implements automatic cleanup by removing empty plugin namespaces after preference removal, preventing the accumulation of empty nested maps in the data structure.
Usage Examples:
playerData.removePluginPlayerPref("MyPlugin", "temporary_setting")
playerData.removePluginPlayerPref("Skills", "outdated_config")Behavior Details:
Does nothing if plugin namespace doesn't exist
Does nothing if preference key doesn't exist
Only marks dirty if a preference was actually removed
Removes empty plugin namespaces automatically
Safe to call on non-existent plugins or preferences
Parameters
The plugin identifier/namespace
The specific preference key within the plugin namespace to remove