showPlayerIsTalking()
showPlayerIsTalking
Method in MelodyManager
Class
showPlayerIsTalking
Method in MelodyManager
ClassThe showPlayerIsTalking
method is used to display the talking status of a player in the MelodyMine plugin. This method updates the player's status on the BossBar and NameTag based on whether the player is muted, self-muted, or actively talking.
Method Signature
Parameters
player
MelodyPlayer
The player whose talking status is to be displayed.
Example
Here is an example of how to use the showPlayerIsTalking
method in another plugin:
In this example, the displayTalkingStatus
method in the ExamplePlugin
class retrieves the MelodyPlayer
instance for the player using their UUID. It then uses the showPlayerIsTalking
method of the MelodyManager
class to display the talking status of the player. If the status is successfully displayed, a message is logged to the console. If the player is not found, a warning is logged instead.
Last updated