You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Turn on the CommandAPI's plugin messaging functionality (default: false)
138
+
# If "false", the CommandAPI will not listen to incoming plugin messages
139
+
# and attempts to send plugin messages will fail. Enabling networking by
140
+
# setting this to "true" is currently only useful for allowing command
141
+
# requirements on Velocity.
142
+
enable-networking: false
143
+
144
+
# Turn exceptions while sending and receiving packets into warnings (default: false)
145
+
# If "false", the CommandAPI will throw an exception when receiving malformed packets
146
+
# or if it tries to send a packet but cannot. If "true", these problems will be logged
147
+
# as a warning, which does not include the stacktrace. Additionally, warnings can be hidden
148
+
# by setting silent logs to "true".
149
+
make-networking-exceptions-warnings: false
150
+
123
151
# Plugins to convert (default: [])
124
152
# Controls the list of plugins to process for command conversion.
125
153
plugins-to-convert: []
@@ -305,6 +333,42 @@ hook-paper-reload: true
305
333
306
334
</div>
307
335
336
+
### `enable-networking`
337
+
338
+
Controls whether the CommandAPI's plugin messaging functionality is enabled.
339
+
340
+
By default, this is set to `false`, and the CommandAPI will not attempt to to send or receive any plugin messages. At the moment, the only intended usecase for enabling networking is to allow [command requirements](../create-commands/requirements.md) to work on a [Velocity](../velocity/intro.md#updating-requirements) proxy server.
341
+
342
+
**Default value**
343
+
344
+
```yaml
345
+
enable-networking: false
346
+
```
347
+
348
+
**Example value**
349
+
350
+
```yaml
351
+
enable-networking: true
352
+
```
353
+
354
+
### `make-networking-exceptions-warnings`
355
+
356
+
Controls whether the CommandAPI will throw an exception or log a warning when networking errors occur.
357
+
358
+
By default, this is set to `false`, so the CommandAPI will throw an exception when receiving malformed packets or if it tries to send a packet but cannot. If `true`, these problems will be logged as a warning, which reduces the length in the log by omitting the stack trace. Additionally, these warnings will be hidden completely if [`silent-logs`](#silent-logs) is also `true`.
359
+
360
+
**Default value**
361
+
362
+
```yaml
363
+
make-networking-exceptions-warnings: false
364
+
```
365
+
366
+
**Example value**
367
+
368
+
```yaml
369
+
make-networking-exceptions-warnings: true
370
+
```
371
+
308
372
### `plugins-to-convert`
309
373
310
374
Controls the list of plugins to process for command conversion. See [Command conversion](command-conversion/conversion) for more information.
0 commit comments