Repository navigation
Releases
TgRelay 1.13.4 — one console line per outage
Telegram outages are now one console line, not one per timed-out poll.
On a slow home line a long poll can time out every couple of minutes; the console was printing a
line for each of them while the admins (correctly) stayed silent. Now the console gets a line when
the outage is confirmed — the same poll-failures / outage-seconds threshold the notices use —
and a line when the link is back. Admin notices keep their behaviour exactly as before.
Also: firstFailureAt is cleared on any recovery, not only after a confirmed outage, so a slow
flap does not carry over into the next one.
Full Changelog: v1.13.3...v1.13.4
TgRelay 1.13.3 — no notice per dropped handshake
A single dropped TLS handshake no longer writes to the admins.
Every failed poll produced "связь с Telegram восстановлена" on the next success — on a flaky home
line that is a dozen meaningless notices a day. Now:
- a failed poll is retried once after 2 s, so one blip is not a failure at all;
- the outage is announced only after
notices.poll-failuresfailures ornotices.outage-seconds
(default 120) of continuous failure; - the recovery notice is sent only if the outage was announced — a state transition, not every hiccup.
Full Changelog: v1.13.2...v1.13.3
TgRelay 1.13.2 — heads from Mojang
Player heads now come from Mojang, not from a third-party avatar service.
mc-heads does not know every nickname: for one player it served the default Steve while Mojang
returned the real skin. The plugin asks Mojang for the profile, decodes the texture property,
cuts the 8×8 face out of the skin and scales it to 100×100 — a crisp head instead of somebody
else's. mc-heads stays as a fallback for nicknames Mojang cannot resolve.
Full Changelog: v1.13.1...v1.13.2
TgRelay 1.13.1 — restart reason and initiator
Restart notices now say why and who.
/tgrelay reason <text> records the reason, the stop command from console or RCON records the
initiator, and both go into the stopping notice. The pair is written to last-stop.txt, so the
next "server started" notice can say when it was stopped, by whom and why — the reason no longer
dies with the process.
LOSOS RELAY Сервер останавливается — инициатор: RCON, причина: обновление плагина
LOSOS RELAY Сервер запущен — до этого остановлен 29.10 15:04, инициатор: RCON, причина: обновление плагина
Full Changelog: v1.12.7...v1.13.1
TgRelay 1.12.7 — no duplicate server names
Server notices stopped repeating the server name.
The badge already says which world a line came from, so связь с Telegram восстановлена (Losos)
became связь с Telegram восстановлена, and the started/stopping notices carry no name either.
The console status keeps it — that is where a name is still useful.
Full Changelog: v1.12.6...v1.12.7
TgRelay 1.12.6 — badges and player heads
Server, tag and author are badges now — and the author is their own skin head.
Badge plates
A word is drawn as a picture and cut into 100×100 tiles, one Telegram custom emoji per tile; the
tiles sit in a row and read as one plate. {losos}, {build}, {mute}, {relay} are configured in
telegram.badges, so the same plugin works for any server name.
LOSOS RELAY Сервер запущен
LOSOS MUTE Игрок: кто продаёт алмазы?
Player heads
The plugin downloads the skin head once, adds it to its own custom emoji pack and keeps the id in
avatars.txt. After the first join a player is shown as they look in game instead of a Telegram
handle. Pack ownership stays with a user account (bots cannot own custom emoji packs), and the bot
may use custom emoji when its owner has Telegram Premium — everyone can see them.
Fixed along the way
- the badge and avatar maps were built before the API client existed, so both were empty at send
time and{losos}/%avatar%reached the chat as plain text; - spaces around a plate are guaranteed by the sender now, so the text never sticks to the picture;
- server notices no longer print
%server_emoji%literally; - the restart loop of the second server hung on
timeoutin a detached console — now it waits on
ping, so the server actually comes back.
Full Changelog: v1.9.0...v1.12.6
TgRelay 1.9.0 — emoji labels for servers
Server labels can be emoji now.
server.emoji feeds a new %server_emoji% placeholder that works in every format — chat,
join/quit/death/advancement, /say broadcasts, mute.prefix and the admin notices:
🐟 Den140: привет (survival world)
🧱 Alex: testing the roof (creative world)
🙊 🐟 Den140: something muted
⚙️ сервер Losos запущен
An emoji needs no translation and two servers are easier to tell apart by a fish and a brick than
by [Losos] and [Build]. Emoji render natively in Telegram; the shipped config keeps the text
form for to-minecraft on purpose, because Minecraft shows emoji as empty boxes without a
resource pack that has the glyphs.
Full Changelog: v1.8.1...v1.9.0
TgRelay 1.8.1 — tab completion for /tgrelay
/tgrelay now completes on Tab.
- players:
off,on,link,unlink,status - admins (
tgrelay.admin): plusreload,testmute,chats
Suggestions are filtered by what is already typed, so /tgrel on completes on and nothing else.
Reported by a player on the server — thanks.
Full Changelog: v1.8.0...v1.8.1
TgRelay 1.8.0 — only linked accounts post into the game
Writing from Telegram now requires a linked account; writing in game stays free.
Only linked accounts post into the game
An unlinked Telegram account gets one short instruction per half hour — "run /tgrelay link
in game and send me the code" — and nothing is relayed. Reading the feed still needs no linking.
Linking is the subscription
A chat that sends a valid code is added to bot.chats and remembered in subscribed.txt, so a new
player joins on their own instead of asking an admin to edit the config.
Codes from a second server work
/tgrelay link on a spoke used to create a code in that server's memory, where the hub could never
see it. Codes are forwarded to the hub now.
linking.required: false restores the loose behaviour.
Full Changelog: v1.7.1...v1.8.0
TgRelay 1.7.1 — Minecraft nickname for linked players
A linked player is named by their Minecraft nickname now, in both directions.
Before this, the same person was Stanislav Ilyin in game chat (the Telegram profile name) and
Stil00000 everywhere else. When the Telegram account is linked with /tgrelay link, the game
chat and the bot-feed copy both use the Minecraft nickname. Unlinked senders keep whatever
Telegram provides — there is no Minecraft name to use.
продублировал в чаты бота -> [TG] Stil00000: тест
показал в игре: [TG] Stil00000: тест
Full Changelog: v1.7.0...v1.7.1