-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodinfo.lua
103 lines (102 loc) · 2.53 KB
/
modinfo.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name = "REST API"
description = "Get pending inbound Commands, and Send server status to a remote web server periodically."
author = "Hicsy (Jack'lul v1.2.4)"
version = "0.02"
api_version = 10
forumthread = ""
icon_atlas = "modicon.xml"
icon = "modicon.tex"
dont_starve_compatible = false
reign_of_giants_compatible = false
dst_compatible = true
client_only_mod = false
all_clients_require_mod = false
server_filter_tags = {"api"}
configuration_options = {
{
name = "API_Server",
label = "API Server",
hover = "Set API Server in modoverrides.lua after hitting \"APPLY\"",
options =
{
{description = "modoverrides.lua", data = "http://127.0.0.1:8080", hover = "default: \"http://127.0.0.1:8080\""}
},
default = "http://127.0.0.1:8080"
},
{
name = "Send_Status",
label = "Send status",
hover = "Regularly send server status updates?",
options =
{
{description = "Yes", data = true},
{description = "No", data = false}
},
default = true
},
{
name = "Send_Status_Frequency",
label = "Freq: Status-Announce (seconds)",
hover = "Set frequency in modoverrides.lua after hitting \"APPLY\"",
options =
{
{description = "modoverrides.lua", data = 60, hover = "default: 60 [seconds]"}
},
default = 60
},
--[[{
name = "API_GET_URL",
label = "API \"GET\" URL",
hover = "[optional] Override this in modoverrides.lua",
options =
{
{description = "modoverrides.lua", data = ""},
},
default = "/commands",
},--]]
{
name = "Get_Commands",
label = "Get Remote Commands",
hover = "Regularly check for pending external commands?",
options =
{
{description = "Yes", data = true},
{description = "No", data = false}
},
default = true
},
{
name = "Get_Commands_Frequency",
label = "Freq: Check New Commands (s)",
hover = "Set frequency in modoverrides.lua after hitting \"APPLY\"",
options =
{
{description = "modoverrides.lua", data = 3, hover = "default: 3 [seconds]"}
},
default = 3
},
--[[
{
name = "Commands_Use_Whitelist",
label = "Commands: Use Whitelist",
hover = "Execute commands from the whitelist.",
options =
{
{description = "Yes", data = true, hover = "Add any functions to commands.lua in mod's dir."},
{description = "No", data = false, hover = "Add any functions to commands.lua in mod's dir."}
},
default = true
},
]]
{
name = "Send_Password",
label = "Send Password",
hover = "Send server password with the status data?",
options =
{
{description = "Yes", data = true},
{description = "No", data = false}
},
default = false
}
}