From 5a0bf16ea4fbbf298c8db33ccf163d688aa7fb07 Mon Sep 17 00:00:00 2001 From: Krock Date: Sat, 16 May 2026 09:16:40 -0500 Subject: [PATCH 2/2] Add playersettings.reset to fall back to default --- README | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README') diff --git a/README b/README index 294fc18..3dc239f 100644 --- a/README +++ b/README @@ -70,6 +70,13 @@ playersettings.set(player_name,setting_name,new_value) -- 'new_value' is the new value of the setting. -- Changing settings via this interface bypasses the built-in validation (such as range checking on numbers) but NOT any specified onchange or afterchange actions. +To reset a setting: + +playersettings.reset(player_name,setting_name) +-- 'player_name' is the player to change the setting for. +-- 'setting_name' is the name of the setting to reset/clear. +-- This will cause 'playersettings.get' to fall back to the default value. + To get the value of a setting (from another mod): playersettings.get(player_name,setting_name) -- cgit v1.2.3