mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Show links embedded in chat
Allows clicking if supported by terminal, or at least copy and paste to web browser. Suggestion by brkmrr9 in #207
This commit is contained in:
parent
9cd983c50d
commit
1180c06b1f
6 changed files with 59 additions and 28 deletions
|
|
@ -436,9 +436,13 @@ namespace MinecraftClient
|
|||
/// Received some text from the server
|
||||
/// </summary>
|
||||
/// <param name="text">Text received</param>
|
||||
public void OnTextReceived(string text)
|
||||
/// <param name="links">Links embedded in text</param>
|
||||
public void OnTextReceived(string text, IEnumerable<string> links)
|
||||
{
|
||||
ConsoleIO.WriteLineFormatted(text, false);
|
||||
if (Settings.DisplayChatLinks)
|
||||
foreach (string link in links)
|
||||
ConsoleIO.WriteLineFormatted("§8MCC: Link: " + link, false);
|
||||
for (int i = 0; i < bots.Count; i++)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue