{"id":100649,"date":"2026-06-05T21:52:52","date_gmt":"2026-06-05T18:52:52","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/"},"modified":"2026-06-05T21:52:52","modified_gmt":"2026-06-05T18:52:52","slug":"message-api","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/","title":{"rendered":"message-api"},"content":{"rendered":"<p># message-api<\/p>\n<p>A simple server-side message API for Fabric. It allows for translatable messages, with text parsing<br \/>\nusing PlaceholderAPI<br \/>\n, which can be customized with ease by end users.<\/p>\n<p>## Features<\/p>\n<p>&#8211; Special text parsing with PlaceholderAPI<br \/>\n&#8211; Easy customizable in-game messages<br \/>\n&#8211; Language localization support<br \/>\n&#8211; Easy to integrate<\/p>\n<p>## Usage<\/p>\n<p>### Adding the dependency<\/p>\n<p>To use message-api in your mod, add the following to your `build.gradle` file:<\/p>\n<p>Message-api doesn&#8217;t bundle placeholder-api, you have to bundle a compatible of it as well.<br \/>\nReplace `[TAG]` with the respective versions.<\/p>\n<p>&#8220;`groovy<br \/>\nrepositories {<br \/>\n    maven { url &#8220;https:\/\/maven.nucleoid.xyz\/&#8221; }<br \/>\n    maven { url &#8220;https:\/\/api.modrinth.com\/maven&#8221; }<br \/>\n}<\/p>\n<p>dependencies {<br \/>\n    include(modImplementation(&#8220;maven.modrinth:message-api:[TAG]&#8221;))<br \/>\n    include(modImplementation(&#8220;eu.pb4:placeholder-api:[TAG]&#8221;))<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>### Adding messages<\/p>\n<p>Create a `messages` folder in your resource folder. Create a JSON file with<br \/>\nthe language code you would like to add, like<br \/>\nthe [testmod example](src\/testMod\/resources\/messages\/en_us.json).<br \/>\nAdd your message to the file (make sure to prefix the message id with your mod id, to avoid conflicts).<\/p>\n<p>### Creating messages<\/p>\n<p>Use any of the provided methods in [LocalizedMessage](src\/main\/java\/me\/drex\/message\/api\/LocalizedMessage.java) to get your text instance,<br \/>\nwhich works like any other vanilla text instance!<\/p>\n<p>&#8220;`java<br \/>\nServerPlayerEntity player;<br \/>\nplayer.sendMessageToClient(LocalizedMessage.localized(&#8220;modid.some.message.id&#8221;));<br \/>\n&#8220;`<\/p>\n<details>\n<summary>Official Mojang Mappings<\/summary>\n<p>&#8220;`java<br \/>\nServerPlayer player;<br \/>\nplayer.sendSystemMessage(LocalizedMessage.localized(&#8220;modid.some.message.id&#8221;));<br \/>\n&#8220;`<\/p>\n<\/details>\n<p>### User configuration<\/p>\n<p>To change messages, edit the JSON file in `.\/config\/<modid>\/<languageid>.json`. This will change the language file for<br \/>\nthe mod with the specified `modid`.<\/p>\n<p>## Credits<\/p>\n<p>Special thanks to PlaceholderAPI for providing the parsing functionality.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fabric message api for translatable, configurable and colorful messages with placeholders<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_minecraft_slug":"message-api","_minecraft_project_id":"BJEC0JAD","_minecraft_author":"DrexHD","_minecraft_license":"MIT","_minecraft_downloads":2333,"_minecraft_follows":3,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"message-api.zip","_minecraft_size_bytes":3133918,"_minecraft_version_count":29,"_minecraft_updated_at":"2026-05-15T21:14:23.603234Z","_minecraft_date_created":"2025-01-11T04:35:37.695766Z","_minecraft_date_modified":"2026-03-25T11:38:55.648169Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/message-api","_minecraft_icon_attachment_id":0,"_minecraft_imported_at":"2026-06-05T18:52:53+00:00","_minecraft_import_hash":"095fd47938145d965ba90f79f09c92ba","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,873,98],"mod_loader":[99,100],"minecraft_version":[62,37,40,41,73,74,38,78,771,79,784,80,81,82,83,167,163],"class_list":["post-100649","mod","type-mod","status-publish","hentry","mod_category-fabric","mod_category-library","mod_category-quilt","mod_loader-fabric","mod_loader-quilt","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-5-rc2","minecraft_version-1-21-6","minecraft_version-1-21-6-rc1","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-26-1","minecraft_version-26-1-1","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>message-api - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"message-api - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Fabric message api for translatable, configurable and colorful messages with placeholders\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/message-api\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/message-api\\\/\",\"name\":\"message-api - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"datePublished\":\"2026-06-05T18:52:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/message-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/message-api\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/message-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"message-api\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"message-api - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/","og_locale":"en_US","og_type":"article","og_title":"message-api - Minecraft","og_description":"Fabric message api for translatable, configurable and colorful messages with placeholders","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/","name":"message-api - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"datePublished":"2026-06-05T18:52:52+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/message-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/message-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"message-api"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/100649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=100649"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=100649"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=100649"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=100649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}