-- Example
-- When the plugin runs this checks if the plugin has already previously set
-- this setting to `true`.
if plugin:GetSetting("hasRanBefore") then
-- Plugin has ran before
print("Welcome back developer!")
else
-- User is using the plugin for the first time
plugin:SetSetting("hasRanBefore", true)
end
This is another example (read the source code in the comments)