{"id":15174215,"url":"https://github.com/kredwi/chathook","last_synced_at":"2026-01-26T02:35:03.815Z","repository":{"id":252893977,"uuid":"841822456","full_name":"Kredwi/ChatHook","owner":"Kredwi","description":"Small plugin that sends a message from a chat to your external server.","archived":false,"fork":false,"pushed_at":"2024-08-13T05:45:17.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T10:14:39.466Z","etag":null,"topics":["bukkit","bukkit-api","chat","minecraft-plugin","paper","plugin","spigot","spigot-mc","spigot-plugin","spigotmc"],"latest_commit_sha":null,"homepage":"https://www.spigotmc.org/resources/chathook.118861/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kredwi.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-13T05:41:52.000Z","updated_at":"2024-08-13T13:38:31.000Z","dependencies_parsed_at":"2024-08-13T06:52:25.485Z","dependency_job_id":null,"html_url":"https://github.com/Kredwi/ChatHook","commit_stats":null,"previous_names":["kredwi/chathook"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kredwi%2FChatHook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kredwi%2FChatHook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kredwi%2FChatHook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kredwi%2FChatHook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kredwi","download_url":"https://codeload.github.com/Kredwi/ChatHook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239887302,"owners_count":19713630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bukkit","bukkit-api","chat","minecraft-plugin","paper","plugin","spigot","spigot-mc","spigot-plugin","spigotmc"],"created_at":"2024-09-27T11:41:06.075Z","updated_at":"2026-01-26T02:35:03.773Z","avatar_url":"https://github.com/Kredwi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatHook - Sending Chat Messages to an External Server\n\n## Description\n- A simple plug-in that allows you to send messages to players in chat, to an external (back-end) server. It is well suited for creating a chat on a website or for Discord WebHooks.\n\n## WARNING\n**FOR THE PLUGIN, YOU NEED A BACKEND SERVER TO ACCEPT REQUESTS FROM THE PLUGIN**\n\n## Features\n- Available from version `1.12.2` to `1.21`\n- The plug-in has the ability to extend the information sent to the server (thanks to *papi*).\n- The list of players whose messages will not be sent to the back-end server can be configured.\n\n## External Issues\n- Streams do not finish their work when the reload command is used.\n- If there is an infinite loop on the back-end, the stream will never close.\n- Every new message in chat sends a request to the back-end server, which can overload it.\n- In Spigot, when creating config.yml, for some reason most comments are deleted\n- The plug-in does not differentiate between global and local chats.\n- The plugin can't accept any data, it knows how to send it, so you won't be able to create a full-fledged chat\n\n### Config Example\n```yaml\n# Author: Kredwi\n# Issues: https://github.com/kredwi/chathook/issues\ndebug: false # Enable debug mode (true - enabled, false - disabled).\nasync: true # Use asynchronous requests, if disabled, chat messages can be sent with a significant delay\ntimeout: 5000 # Timeout in milliseconds, after which the connection will be closed.\nrequest_url: \"http://localhost:8439\" # The address of the server to which requests will be sent.\nauthorization: \"\" # Authorization token, if not needed, leave the field empty\nconfig-version: 1 # Config version\n\n# Message sector\nmessage_sector:\n error_invalid_command: \"§cThis command does not exist\"\n config_is_reloaded: \"§aConfiguration successfully reloaded\"\n no_arguments: \"§cNot enough arguments\"\n no_permissions: \"§cYou do not have enough permissions\"\n\n# List of player nicknames whose messages will not be sent to the server\ndisabled_players:\n - Kredwi\n - igor\n\n# Other information that will be sent in the request\nother_information:\n key_1: \"%player_ip%\"\n key_2: \"%player_name%\"\n```\n\n### Data Example\nWith the configuration above, the request to the server will be:\n```json\n{\n  \"key_1\": \"127.0.0.1\",\n  \"key_2\": \"Player Name\",\n  \"uuid\": \"Player UUID\",\n  \"name\": \"Player NAME\",\n  \"content\": \"Test message\",\n  \"worldName\": \"World\"\n}\n```\n\n**Note**: `key_1` and `key_2` it's custom keys from `config.yml`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkredwi%2Fchathook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkredwi%2Fchathook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkredwi%2Fchathook/lists"}