I am working on creating a ticket plugin with different categories. I need to listen for a chat event after a player has clicked on an item in a GUI but cant figure out how to activate that listener inside of the click event. It is a 1.18 server, all I need it to listen for a chat event and be able to store the username, uuid, and chat content after they send a message. I am hoping the listener can be inside the click event so that I don't have to define extra variables.