Anonymous1 Posted September 22, 2020 Posted September 22, 2020 eg on hypixel if you click on someone's name in chat you go to their social menu. Is it possible to get the command used from the click? Quote
Draco18s Posted September 22, 2020 Posted September 22, 2020 Chat supports hyperlinks, so they've probably hooked into that. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Anonymous1 Posted September 22, 2020 Author Posted September 22, 2020 39 minutes ago, Draco18s said: Chat supports hyperlinks, so they've probably hooked into that. I know they use commands, but I want to be able to get the command from the chat message. When I say social menu, it's an in game menu so it isn't a hyperlink Quote
mikerwow Posted April 1, 2021 Posted April 1, 2021 On 9/22/2020 at 10:22 AM, diesieben07 said: ITextComponent#getStyle and then Style#getClickEvent gets you the click action. NewChatGui#chatLines (you'll need reflection) will give you the known chat messages on the client. Hi, just saw this and I'm attempting to run a command or open a GUI on click after a middle mouse button on a username in chat. What do you mean by these handlers? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.