sendSoundSetting()
sendSoundSetting
Method in MelodyManager
Class
sendSoundSetting
Method in MelodyManager
ClassThe sendSoundSetting
method is used to send the sound settings of a player in the MelodyMine plugin. This method sends the sound settings to the client.
Method Signature
Parameters
Parameter
Type
Description
socketID
String
The socket ID of the player whose sound settings are to be sent.
Example
Here is an example of how to use the sendSoundSetting
method in another plugin:
In this example, the sendPlayerSoundSetting
method in the ExamplePlugin
class retrieves the MelodyPlayer
instance for the player using their UUID. It then uses the sendSoundSetting
method of the MelodyManager
class to send the player's sound settings. If the settings are successfully sent, a message is logged to the console. If the player is not found, a warning is logged instead.
Last updated