From 24e1491f4e8f0dbc56768cc25ca97672fcf4695c Mon Sep 17 00:00:00 2001 From: Vsevolod Date: Mon, 27 Jul 2020 10:49:34 +0300 Subject: [PATCH] chore: update readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1cf6a49..16d91e7 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ P. S. You can always update plugin configuration without restarting the server. | strings | Dictionary of tokens - strings for plugin i18n | `Map` | :x: | See default config | | commands | Dictionary of command text used in Telegram bot | `Map` | :heavy_check_mark: | See below | | telegramMessageFormat | Format string for TGtoMC chat message | `string` | :x: | See default config | +| minecraftMessageFormat | Format string for MCtoTG chat message | `string` | :x: | See default config | ## Telegram bot commands: @@ -74,8 +75,14 @@ Commands are customizeable through config. If command doesn't exist in config, i ## Format string: -Must contain `%username%` and `%message` inside. -You can customize message color with it. See [message color codes](https://www.digminecraft.com/lists/color_list_pc.php) for more information. +``` ++--------+ >--minecraftMessageFormat(message)-> +--------------+ +| Spigot | | Telegram bot | ++--------+ <--telegramMessageFormat(message)--< +--------------+ + +Applies to `telegramMessageFormat` and `minecraftMessageFormat` configurations. +Must contain `%username%` and `%message%` inside. +You can customize message color with it (only for `telegramMessageFormat`. See [message color codes](https://www.digminecraft.com/lists/color_list_pc.php) for more information. This feature is related to [this issue](https://github.com/kraftwerk28/spigot-tg-bridge/issues/6)