PostSendQRCodeEvent
The PostSendQRCodeEvent
is a custom event in the Bukkit API. It is triggered after a QR code is sent to a player. This event provides a way to execute custom logic in response to the QR code being sent.
Class Structure
Method/Variable
Type
Description
player
Player
The player to whom the QR code was sent.
Example Usage
Here is an example of how to listen to this event using the Bukkit event API:
In this example, we create a listener for the PostSendQRCodeEvent
. When the event is triggered, we retrieve the player to whom the QR code was sent and print a message to the console.
Remember to register your listener in your plugin's onEnable()
method to ensure that it listens to the event.
This will ensure that your QRCodeListener
is listening for the PostSendQRCodeEvent
when your plugin is enabled.
Last updated