remove Player Flag
Removes a player flag from the persistent storage.
This method deletes a player flag if it exists. The dirty flag is only set if the key actually existed and was removed, avoiding unnecessary database operations for non-existent keys.
Usage Examples:
playerData.removePlayerFlag("temporary_buff")
playerData.removePlayerFlag("outdated_setting")Content copied to clipboard
Behavior:
Removes the flag if it exists
Does nothing if the flag doesn't exist
Only marks dirty if a flag was actually removed
Safe to call on non-existent keys
Parameters
key
The flag name/key to remove