COWMODSКаталог модов

Chat2HTTP

A plugin that translates the chat into an http request. Simple as possible!

4813обновлён 4 окт. 2026 г.
УправлениеОбщениеУтилиты

Описание

C2HTTP plugin

Badge Badge

What is this plugin?

Intercepts player messages and sends them to the specified webhook URL via a POST request (parameters: nick, message, password).

How does it work?

Intercepts player messages and sends them to the specified webhook URL via a POST request (parameters: nick, message, password).

Configuration config.yml

webhook-url: "https://your-server/endpoint"
password: "your_password"
# optional: no-permission-message, config-reloaded, main-text

Commands

  • /c2h reload - reload the config (requires c2h.reload permission).

Permissions

  • c2h.reload - access to reload.

Handling example

Uses aiohttp

async def minecraft(request: aiohttp.web.Request):
    data = await request.post()
    if data.get("password") != config.tokens.chattohttp:
        logger.info("Invalid password")
        return aiohttp.web.Response(text="Password is not valid", status=401)
    nick = data.get("nick")
    message = data.get("message")
    if not formatter.is_valid_mc_nick(nick):
        return aiohttp.web.Response(text="Nick is not valid", status=406)
    logger.info(f"{nick} said: {message}")
    return aiohttp.web.Response(text="ok")

Building

Install Maven and run
mvn clean package

Versioning

The plugin uses SemVer - <major>.<minor>.<patch>

  • major - incompatible changes
  • minor - compatible feature changes
  • patch - non-functional changes (bugfixes)

Последние версии

Все версии →
release

v2.2.1

2.2.1
4 окт. 2026 г.25Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.2, 26.3folia, paper, purpur
Скачать
Что нового
- [14c2406](https://github.com/trassert/ChatHTTP/commit/14c2406) bump ver - [0458abc](https://github.com/trassert/ChatHTTP/commit/0458abc) fix modrinth versions - [5b30ea3](https://github.com/trassert/ChatHTTP/commit/5b30ea3) fix readme
release

v2.2.0

2.2.0
4 окт. 2026 г.7Minecraft: 26.3bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [8de5fda](https://github.com/trassert/ChatHTTP/commit/8de5fda) refactor: optimize and add Folia support
release

v2.1.1

2.1.1
29 сент. 2026 г.7Minecraft: 26.3bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [b1737fd](https://github.com/trassert/ChatHTTP/commit/b1737fd) Обновление до 26.3 - [f94f4b9](https://github.com/trassert/ChatHTTP/commit/f94f4b9) Улучшение русскоязычной Readme - [be98aff](https://github.com/trassert/ChatHTTP/commit/be98aff) Улучшение англоязычной Readme - [5d5ddf3](https://github.com/trassert/ChatHTTP/commit/5d5ddf3) Заглушить варн на OnCommand - [8c314d3](https://github.com/trassert/ChatHTTP/commit/8c314d3) Форматирование - [4c97560](https://github.com/trassert/ChatHTTP/commit/4c97560) Обновление релизов акшнс - [e4163fc](https://github.com/trassert/ChatHTTP/commit/e4163fc) Лицензия - [58ef3f9](https://github.com/trassert/ChatHTTP/commit/58ef3f9) Исправления ру и англ readme
release

v2.1.0

2.1.0
3 июл. 2026 г.37Minecraft: 26.1.2, 26.2bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [0f12abb](https://github.com/trassert/ChatHTTP/commit/0f12abb) Фикс "local variables referenced from a lambda expression must be final or effectively final" - [cff41f4](https://github.com/trassert/ChatHTTP/commit/cff41f4) Новое: c2h send Бамп версии до 2.1.0
release

v2.0.2

2.0.2
30 июн. 2026 г.12Minecraft: 26.1.2, 26.2bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [3f02f93](https://github.com/trassert/ChatHTTP/commit/3f02f93) 26.2 поддержка (пока не тестировалось)
release

v2.0.1

2.0.1
30 июн. 2026 г.14Minecraft: 26.1.2bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [d2c8cc8](https://github.com/trassert/ChatHTTP/commit/d2c8cc8) Помечено как стабильный релиз, изменение README
release

v2.0.0

2.0.0
25 июн. 2026 г.16Minecraft: 26.1.2bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [a2dc93b](https://github.com/trassert/ChatHTTP/commit/a2dc93b) Теперь использует POST. Важно: версии плагина до 2.х теперь не поддерживаются!
release

v1.5.6-beta

1.5.6-beta
26 мая 2026 г.14Minecraft: 26.1.2bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [fe6a491](https://github.com/trassert/ChatHTTP/commit/fe6a491) Исправление варнов.
release

v1.5.5

1.5.5
6 мая 2026 г.19Minecraft: 26.1.2bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [59db5d3](https://github.com/trassert/ChatHTTP/commit/59db5d3) actions/upload-artifact@v7 - [bb9d565](https://github.com/trassert/ChatHTTP/commit/bb9d565) Java v5 - [e7a2c3c](https://github.com/trassert/ChatHTTP/commit/e7a2c3c) Обновления Actions и env
release

v1.4.2

1.4.2
15 янв. 2026 г.21Minecraft: 1.21.11bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- [2b9fbfe](https://github.com/trassert/ChatHTTP/commit/2b9fbfe) Красивые changelogs, 1.21.11 API