Home›Java›Mods›[API] MessageBuilder
ModsJava

[API] MessageBuilder

Minecraft Java mod. Download on the author's site.

⬇ Download on Spigot
This API allows you to to create dynamic messages, load messages from configuration files and format the messages you created.

[​IMG]
I enjoy making all of my plugins for free, but I need your help to keep them for free.​

Examples
Add messages
Code (Java):

new MessageBuilder ( )
. withMessage ( "test.message1", "This is the first test message" )
. withMessage ( "test.another.message", "This is another test message" )
. build ( ) ;
 
Load additional messages from the plugin's configuration file
Code (Java):

new MessageBuilder ( )
                . withMessage ( "test.message1", "This is the first test message" )
                . withMessage ( "test.another.message", "This is another test message" )
                . fromConfig (myPlugin. getConfig ( ) )
                . build ( ) ;
 
Access built messages
Code (Java):

MessageContainer container = new MessageBuilder ( )
. withMessage ( "test.message1", "This is the first test message" )
. withMessage ( "test.another.message", "This is another test message" )
. build ( ) ;
container. getMessage ( "test.message1" ) ; // Returns 'This is the first test message'
 
Access built messages with additional replacements
Code (Java):

MessageContainer container = new MessageBuilder ( )
. withMessage ( "test.message1", "This is the first test message" )
. withMessage ( "test.another.message", "This is another test message" )
. withMessage ( "test.formatted.message", "This is a formatted message for %player%" )
. build ( ) ;
container. getMessage ( "test.formatted.message", new ReplacementContainer ( ). replace ( "%player%", player. getName ( ) ) ) ; //Returns (for example) 'This is a formatted message for inventivetalent'
 


Maven
Code (XML):

<repositories>
    <repository>
        <id>inventive-repo </id>
        <url>https://repo.inventivetalent.org/content/groups/public/ </url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>org.inventivetalent </groupId>
        <artifactId>messagebuilder </artifactId>
        <version>1.0.0 </version>
    </dependency>
</dependencies>
 


Links
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[API] MessageBuilder is a free Minecraft Java mod. Downloaded 432 times (via Spigot). Download it and open it directly in the game.

Related Java mods

M

MessageBuilder

42downloads
M
26.1

message-api

3.6kdownloads
[

[API] MenuBuilder

7.6kdownloads
MyCloneBuilder API
1.8

MyCloneBuilder API

70downloads
[
1.7

[API] RecipeBuilder

692downloads
[
1.7

[API] ItemBuilder

2.8kdownloads

Explore more