-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.lua
53 lines (53 loc) · 1.54 KB
/
settings.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
data:extend({
{ -- If the mod is active at all
type = "bool-setting",
name = "tinv-is-enabled",
setting_type = "runtime-global",
default_value = true,
order = "tinv-setting-10",
},
{ -- Setting for admins if users should be able to decide about inventory access
type = "bool-setting",
name = "tinv-user-inv-democracy",
setting_type = "runtime-global",
default_value = true,
order = "tinv-setting-15",
},
{ -- If we should tell the owner of the inventory something
type = "bool-setting",
name = "tinv-tell-stalker",
setting_type = "runtime-global",
default_value = true,
order = "tinv-setting-20",
},
{ -- The mode the provided users list should be handled
type = "string-setting",
name = "tinv-users-mode",
setting_type = "runtime-global",
default_value = "excluding-listed",
allowed_values = { "only-listed", "excluding-listed" },
order = "tinv-setting-30",
},
{ -- If regex-support for users list is enabled
type = "bool-setting",
name = "tinv-users-list-regex",
setting_type = "runtime-global",
default_value = false,
order = "tinv-setting-40",
},
{ -- Users which should be allowed/disallowed to open invs
type = "string-setting",
name = "tinv-users-list",
setting_type = "runtime-global",
default_value = "",
allow_blank = true,
order = "tinv-setting-45",
},
{ -- If other users should be able to access the inventory of the user
type = "bool-setting",
name = "tinv-user-control-access",
setting_type = "runtime-per-user",
default_value = true,
order = "tinv-setting-user-10",
},
})