forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bukkit-plugin.json
191 lines (191 loc) · 5.58 KB
/
bukkit-plugin.json
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/bukkit-plugin",
"additionalProperties": true,
"definitions": {
"plugin-name": {
"type": "string",
"pattern": "^[A-Za-z0-9_\\.-]+$"
},
"command": {
"description": "Optional command attributes.",
"type": "object",
"properties": {
"description": {
"description": "A user-friendly description for a command.",
"type": "string"
},
"aliases": {
"description": "Alternate command names a user may use instead.",
"type": ["string", "array"]
},
"permission": {
"description": "The permission required to use the command.",
"type": "string"
},
"permission-message": {
"description": "A no-permission message.",
"type": "string",
"examples": ["You do not have <permission>"]
},
"usage": {
"description": "A short description of how to use this command.",
"type": "string"
}
}
},
"permission": {
"description": "Optional permission attributes.",
"properties": {
"description": {
"description": "A short description of what this permission allows.",
"type": "string"
},
"default": {
"$ref": "#/definitions/default-permission",
"description": "The default state for the permission."
},
"children": {
"description": "Allows other permissions to be set as a relation to the parent permission.",
"type": ["array", "object"],
"items": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/definitions/permission",
"type": ["boolean", "object"],
"items": {
"type": "boolean"
}
}
}
}
},
"default-permission": {
"type": ["string", "boolean"],
"enum": [true, false, "op", "not op"],
"default": "op"
}
},
"properties": {
"name": {
"$ref": "#/definitions/plugin-name",
"description": "The unique name of plugin."
},
"main": {
"description": "The plugin's initial class file.",
"type": "string",
"pattern": "^(?!org\\.bukkit\\.)([a-zA-Z_$][a-zA-Z\\d_$]*\\.)*[a-zA-Z_$][a-zA-Z\\d_$]*$"
},
"version": {
"description": "A plugin revision identifier.",
"type": ["string", "number"]
},
"description": {
"description": "Human readable plugin summary.",
"type": "string"
},
"author": {
"description": "The plugin author.",
"type": "string"
},
"authors": {
"description": "The plugin contributors.",
"type": "array",
"items": {
"type": "string"
}
},
"website": {
"title": "Website",
"description": "The URL to the plugin's site",
"type": "string",
"format": "uri"
},
"prefix": {
"description": "The token to prefix plugin log entries.",
"type": "string"
},
"database": {
"description": "Set to true if this plugin uses a database.",
"type": "boolean",
"default": false
},
"load": {
"description": "The phase of server-startup this plugin will load during.",
"type": "string",
"enum": ["STARTUP", "POSTWORLD"],
"default": "POSTWORLD"
},
"depend": {
"description": "Other required plugins.",
"type": "array",
"items": {
"$ref": "#/definitions/plugin-name"
}
},
"softdepend": {
"description": "Other plugins that add functionality.",
"type": "array",
"items": {
"$ref": "#/definitions/plugin-name"
}
},
"loadbefore": {
"description": "A list of plugins should be loaded after this plugin.",
"type": "array",
"items": {
"$ref": "#/definitions/plugin-name"
}
},
"commands": {
"description": "The commands the plugin will register",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/command"
}
},
"permissions": {
"description": "The permissions the plugin will register",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/permission",
"type": "object"
}
},
"default-permission": {
"$ref": "#/definitions/default-permission",
"description": "Gives the default default state of permissions registered for the plugin."
},
"awareness": {
"description": "The concepts that the plugin acknowledges.",
"type": "array",
"items": {
"type": "string",
"pattern": "^!@.+$",
"examples": ["!@UTF-8"]
}
},
"api-version": {
"description": "Gives the API version which this plugin is designed to support.",
"type": ["string", "number"],
"examples": ["1.13", "1.14", "1.15", "1.16"]
},
"libraries": {
"description": "A list of libraries the server should download and supply to the plugin when loading it.",
"type": "array",
"items": {
"type": "string",
"description": "A single server provided library. This library can be used during runtime without being shaded into the plugin jar.",
"pattern": "([^: ]+):([^: ]+)(:([^: ]*)(:([^: ]+))?)?:([^: ]+)",
"examples": [
"org.xerial:sqlite-jdbc:3.34.0",
"com.google.dagger:dagger:2.36"
]
}
}
},
"required": ["name", "main", "version"],
"title": "JSON schema for Bukkit Plugin YAML",
"type": "object"
}