reloadInputDevice

@NotNull
abstract fun reloadInputDevice(): @NotNull CompletableFuture<@Nullable InputDevice>

Closes the current input device and opens a new one in the background, using the configured device name, input backend and the current ServerInfo voice format. Reloads run one at a time, in the order they were requested. The new device is set in the manager before the returned future completes. If the player disconnects while the device is opening, the device is closed and not set. Does nothing if the input device is disabled in the config.

Return

A future that completes with the new device, or with null if the player disconnected or the input device is disabled, or completes exceptionally if a new device couldn't be opened.