CommunicationUtils
CommunicationUtils
groups functions for communicating with users.
Click events
This feature allows localized strings
Since 1.8 Minecraft provides the possibility to click on custom elements in chat. The method clickEvent(sender, msg, options...)
gives this feature to the mod.
As this feature is being reworked, just a quick look-over:
Currently this command creates a simple choice list. Example:
clickEvent(sender, "Stop server?", new Pair<>(" [Yes]", ()-> System.exit(0)), new Pair<>(" [No]", ()-> MessageUtils.messageToSender(sender, "Okay.")))
Player chat:
Stop server? [Yes] [No]