@@ -105,120 +105,152 @@ export const paperCommands: CommandData = {
105
105
} ;
106
106
107
107
export const vanillaPermissions : PermissionData = {
108
- permissionPrefix : "minecraft" ,
109
- permissions : [
108
+ sections : [
110
109
{
111
- permission : "" ,
112
- description : "Gives the user the ability to use all vanilla utilities and commands." ,
113
- opLevel : 4 ,
114
- } ,
115
- {
116
- permission : "admin.command_feedback" ,
117
- description : "Receive command broadcasts when sendCommandFeedback is true." ,
118
- opLevel : 4 ,
119
- } ,
120
- {
121
- permission : "nbt.place" ,
122
- description : "Gives the user the ability to place restricted blocks with NBT in creative." ,
123
- opLevel : 4 ,
124
- } ,
125
- {
126
- permission : "nbt.copy" ,
127
- description : "Gives the user the ability to copy NBT in creative." ,
128
- opLevel : 0 ,
129
- } ,
130
- {
131
- permission : "debugstick" ,
132
- description : "Gives the user the ability to use the debug stick in creative." ,
133
- opLevel : 4 ,
134
- } ,
135
- {
136
- permission : "debugstick.always" ,
137
- description : "Gives the user the ability to use the debug stick in all game modes." ,
138
- requiresOp : false ,
139
- } ,
140
- {
141
- permission : "commandblock" ,
142
- description : "Gives the user the ability to use command blocks." ,
143
- opLevel : 4 ,
110
+ permissionPrefix : "minecraft" ,
111
+ permissions : [
112
+ {
113
+ permission : "" ,
114
+ description : "Gives the user the ability to use all vanilla utilities and commands." ,
115
+ opLevel : 4 ,
116
+ } ,
117
+ {
118
+ permission : "admin.command_feedback" ,
119
+ description : "Receive command broadcasts when sendCommandFeedback is true." ,
120
+ opLevel : 4 ,
121
+ } ,
122
+ {
123
+ permission : "nbt.place" ,
124
+ description :
125
+ "Gives the user the ability to place restricted blocks with NBT in creative." ,
126
+ opLevel : 4 ,
127
+ } ,
128
+ {
129
+ permission : "nbt.copy" ,
130
+ description : "Gives the user the ability to copy NBT in creative." ,
131
+ opLevel : 0 ,
132
+ } ,
133
+ {
134
+ permission : "debugstick" ,
135
+ description : "Gives the user the ability to use the debug stick in creative." ,
136
+ opLevel : 4 ,
137
+ } ,
138
+ {
139
+ permission : "debugstick.always" ,
140
+ description : "Gives the user the ability to use the debug stick in all game modes." ,
141
+ requiresOp : false ,
142
+ } ,
143
+ {
144
+ permission : "commandblock" ,
145
+ description : "Gives the user the ability to use command blocks." ,
146
+ opLevel : 4 ,
147
+ } ,
148
+ ] ,
144
149
} ,
145
150
] ,
146
151
} ;
147
152
148
153
export const bukkitPermissions : PermissionData = {
149
- permissionPrefix : "bukkit" ,
150
- permissions : [
151
- {
152
- permission : "broadcast" ,
153
- description : "Allows the user to receive all broadcast messages" ,
154
- opLevel : 4 ,
155
- } ,
156
- {
157
- permission : "broadcast.admin" ,
158
- description : "Allows the user to receive administrative broadcasts" ,
159
- opLevel : 4 ,
160
- } ,
154
+ sections : [
161
155
{
162
- permission : "broadcast.user" ,
163
- description : "Allows the user to receive user broadcasts" ,
164
- opLevel : 0 ,
156
+ permissionPrefix : "bukkit" ,
157
+ permissions : [
158
+ {
159
+ permission : "broadcast" ,
160
+ description : "Allows the user to receive all broadcast messages" ,
161
+ opLevel : 4 ,
162
+ } ,
163
+ {
164
+ permission : "broadcast.admin" ,
165
+ description : "Allows the user to receive administrative broadcasts" ,
166
+ opLevel : 4 ,
167
+ } ,
168
+ {
169
+ permission : "broadcast.user" ,
170
+ description : "Allows the user to receive user broadcasts" ,
171
+ opLevel : 0 ,
172
+ } ,
173
+ ] ,
165
174
} ,
166
175
] ,
167
176
} ;
168
177
169
178
export const paperPermissions : PermissionData = {
170
- permissionPrefix : "bukkit.command.paper" ,
171
- permissions : [
172
- { permission : "heap" , description : "Allows the user to run the heap sub command" , opLevel : 4 } ,
173
- {
174
- permission : "entity" ,
175
- description : "Allows the user to run the entity sub command" ,
176
- opLevel : 4 ,
177
- } ,
178
- {
179
- permission : "reload" ,
180
- description : "Allows the user to run the reload sub command" ,
181
- opLevel : 4 ,
182
- } ,
183
- {
184
- permission : "version" ,
185
- description : "Allows the user to run the version sub command" ,
186
- opLevel : 4 ,
187
- } ,
188
- {
189
- permission : "dumpplugins" ,
190
- description : "Allows the user to run the dumpplugins sub command" ,
191
- opLevel : 4 ,
192
- } ,
193
- {
194
- permission : "syncloadinfo" ,
195
- description : "Allows the user to run the syncloadinfo sub command" ,
196
- opLevel : 4 ,
197
- } ,
198
- {
199
- permission : "dumpitem" ,
200
- description : "Allows the user to run the dumpitem sub command" ,
201
- opLevel : 4 ,
202
- } ,
203
- {
204
- permission : "mobcaps" ,
205
- description : "Allows the user to run the mobcaps sub command" ,
206
- opLevel : 4 ,
207
- } ,
208
- {
209
- permission : "dumplisteners" ,
210
- description : "Allows the user to run the dumplisteners sub command" ,
211
- opLevel : 4 ,
212
- } ,
179
+ sections : [
213
180
{
214
- permission : "fixlight" ,
215
- description : "Allows the user to run the fixlight sub command" ,
216
- opLevel : 4 ,
181
+ permissionPrefix : "bukkit.command.paper" ,
182
+ permissions : [
183
+ {
184
+ permission : "heap" ,
185
+ description : "Allows the user to run the heap sub command" ,
186
+ opLevel : 4 ,
187
+ } ,
188
+ {
189
+ permission : "entity" ,
190
+ description : "Allows the user to run the entity sub command" ,
191
+ opLevel : 4 ,
192
+ } ,
193
+ {
194
+ permission : "reload" ,
195
+ description : "Allows the user to run the reload sub command" ,
196
+ opLevel : 4 ,
197
+ } ,
198
+ {
199
+ permission : "version" ,
200
+ description : "Allows the user to run the version sub command" ,
201
+ opLevel : 4 ,
202
+ } ,
203
+ {
204
+ permission : "dumpplugins" ,
205
+ description : "Allows the user to run the dumpplugins sub command" ,
206
+ opLevel : 4 ,
207
+ } ,
208
+ {
209
+ permission : "syncloadinfo" ,
210
+ description : "Allows the user to run the syncloadinfo sub command" ,
211
+ opLevel : 4 ,
212
+ } ,
213
+ {
214
+ permission : "dumpitem" ,
215
+ description : "Allows the user to run the dumpitem sub command" ,
216
+ opLevel : 4 ,
217
+ } ,
218
+ {
219
+ permission : "mobcaps" ,
220
+ description : "Allows the user to run the mobcaps sub command" ,
221
+ opLevel : 4 ,
222
+ } ,
223
+ {
224
+ permission : "dumplisteners" ,
225
+ description : "Allows the user to run the dumplisteners sub command" ,
226
+ opLevel : 4 ,
227
+ } ,
228
+ {
229
+ permission : "fixlight" ,
230
+ description : "Allows the user to run the fixlight sub command" ,
231
+ opLevel : 4 ,
232
+ } ,
233
+ {
234
+ permission : "debug" ,
235
+ description : "Allows the user to run the debug sub command" ,
236
+ opLevel : 4 ,
237
+ } ,
238
+ ] ,
217
239
} ,
218
240
{
219
- permission : "debug" ,
220
- description : "Allows the user to run the debug sub command" ,
221
- opLevel : 4 ,
241
+ permissionPrefix : "paper" ,
242
+ permissions : [
243
+ {
244
+ permission : "antixray.bypass" ,
245
+ description : "Allows the user to bypass anti-xray if use-permission is enabled" ,
246
+ opLevel : 4 ,
247
+ } ,
248
+ {
249
+ permission : "bypass-visibility.tab-completion" ,
250
+ description : "Allows the user to see hidden players in command tab completions" ,
251
+ opLevel : 4 ,
252
+ } ,
253
+ ] ,
222
254
} ,
223
255
] ,
224
256
} ;
0 commit comments