acceptCall()
acceptCall
Method in MelodyManager
Class
acceptCall
Method in MelodyManager
ClassMethod Signature
Parameters
Parameter
Type
Description
melodyPlayer
MelodyPlayer
The player who is accepting the call.
targetPlayer
MelodyPlayer
The player who initiated the call.
Example
Here is an example of how to use the acceptCall
method in another plugin:
In this example, the acceptIncomingCall
method in the ExamplePlugin
class retrieves the MelodyPlayer
instances for the acceptor and initiator players using their UUIDs. It then uses the acceptCall
method of the MelodyManager
class to accept the call. If the call is successfully accepted, a message is logged to the console. If one or both of the players are not found, a warning is logged instead.
Last updated