sendStartQRCode()
sendStartQRCode
Method in MelodyManager
Class
sendStartQRCode
Method in MelodyManager
ClassThe sendStartQRCode
method is a part of the MelodyManager
class in the MelodyMine plugin. This method is used to send a QR code to a player in the game. The QR code is placed in a specific slot in the player's inventory or in the player's offhand.
Method Signature
Parameters
Parameter | Type | Description |
---|---|---|
|
| The player to whom the QR code will be sent. |
|
| The inventory slot where the QR code will be placed. |
|
| If |
Example Usage
Here is an example of how to use the sendStartQRCode
method in another plugin:
In this example, the sendQRCodeToPlayer
method in the ExamplePlugin
class retrieves a player by their name, sends a QR code to the first slot of their inventory using the sendStartQRCode
method, and logs a message to the console. If the player is not found, a warning is logged to the console.
Last updated