disableVoice()
disableVoice
Method in MelodyManager
Class
disableVoice
Method in MelodyManager
ClassThe disableVoice
method is a part of the MelodyManager
class in the MelodyMine plugin. This method is used to disable the voice functionality for a specific player on a specific server. It requires the player's name, UUID, the server they're on, and the target socket ID as parameters.
Method Signature
Parameters
Parameter | Type | Description |
---|---|---|
|
| The name of the player for whom the voice functionality is to be disabled. |
|
| The UUID of the player for whom the voice functionality is to be disabled. |
|
| The server on which the player is currently playing. |
|
| The ID of the socket that is to be targeted for the operation. |
Example Usage
Here is an example of how you might use the disableVoice
method in another plugin:
In this example, we're disabling the voice functionality for a specific player and then logging this action to the console.
Last updated