getMelodyPlayer()
getMelodyPlayer
Method in MelodyManager
Class
getMelodyPlayer
Method in MelodyManager
ClassMethod Signature
Parameters
Parameter
Type
Description
uuid
String
The UUID of the player whose MelodyPlayer
instance is to be retrieved.
Example
Here is an example of how to use the getMelodyPlayer
method in another plugin:
In this example, the printPlayerName
method in the ExamplePlugin
class retrieves the MelodyPlayer
instance for the player using their UUID. It then prints the player's name to the console. If the player is not found, a warning is logged instead.
Last updated