-
Notifications
You must be signed in to change notification settings - Fork 5
/
control.lua
25 lines (22 loc) · 1.14 KB
/
control.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- Copyright (c) 2024 Kirazy
-- Part of Artisanal Reskins: Bob's Mods
--
-- See LICENSE in the project directory for license information.
---@type Reskins.Lib.Version
local _version = require("__reskins-library__.api.version")
local function on_configuration_changed(data)
for _, player in pairs(game.connected_players) do
if player.admin then
if player.mod_settings["reskins-lib-display-notifications"].value == true then
-- Notify of changes when updated in a save we were already present in
if data.mod_changes and data.mod_changes["reskins-bobs"] and data.mod_changes["reskins-bobs"].old_version then
-- 1.0.7 update
if _version.is_same_or_older(data.mod_changes["reskins-bobs"].old_version, "1.0.7") then
player.print({ "", "[", { "reskins-library.reskins-suite-name" }, "] ", { "reskins-updates.reskins-bobs-1-0-7-update", { "mod-setting-name.reskins-bobs-do-bobelectronics-circuit-style" } } })
end
end
end
end
end
end
script.on_configuration_changed(on_configuration_changed)