disableVoice()
disableVoice
Method in MelodyManager
Class
disableVoice
Method in MelodyManager
ClassMethod Signature
Parameters
Parameter
Type
Description
playerName
String
The name of the player for whom the voice functionality is to be disabled.
playerUuid
String
The UUID of the player for whom the voice functionality is to be disabled.
playerServer
String
The server on which the player is currently playing.
targetSocketID
String
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