checkPlayerWebConnection()
checkPlayerWebConnection
Method in MelodyManager
Class
checkPlayerWebConnection
Method in MelodyManager
ClassThe checkPlayerWebConnection
method is used to verify the web connection of a player in the MelodyMine plugin. This method checks if the player is online on the web.
Method 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