checkPlayerWebConnection()
checkPlayerWebConnection
Method in MelodyManager
Class
checkPlayerWebConnection
Method in MelodyManager
ClassMethod Signature
Parameters
Parameter
Type
Description
player
MelodyPlayer
The player whose web connection is to be checked.
Example
Here is an example of how to use the checkPlayerWebConnection
method in another plugin:
In this example, the checkWebConnection
method in the ExamplePlugin
class retrieves the MelodyPlayer
instance for the player using their UUID. It then uses the checkPlayerWebConnection
method of the MelodyManager
class to check the player's web connection. If the check is successfully initiated, a message is logged to the console. If the player is not found, a warning is logged instead.
Last updated