Home›Java›Mods›murAPI
ModsJava

murAPI

Java mod listed for Minecraft 1.8–1.11. Download on the author's site.

⬇ Download on Spigot
Always use the latest version of my plugins with murAPI​

This is a API needed for my plugins MSG, Staff, and MOTD.
This API includes:
- Adding color to configs.
- Adding color to strings.
- Creating titles.
- Creating subtitles.
- Creating GUIs
- Abstract commands
- Creating configs.​
Spoiler: Usage/For developers
Spoiler: plugin.yml
Code (YAML):

# Dependencies
depend
: [murAPI ]
Spoiler: Methods
Just a simple usage of those features:
Adding color to configs:
Code (Java):
Color. addColor ( "path.to.string", plugin_main_class ) ;
Adding color to strings:
Code (Java):
player. sendMessage ( Color. addColor ( "&cHello!" ) ) ;
Creating titles:
Code (Java):
Title. sendTitle (player, "&cHello", 20, 40, 20 ) ;
Creating subtitles:
Code (Java):
Title. sendSubtitle (player, "&cHello player", 20, 40, 20 ) ;
Creating a config:
Code (Java):
Config config = new Config (PLUGIN_MAIN_CLASS, "name.yml" ) ;
config. create ( ) ;
// use config#getFile() for the FileConfiguration stuff.
// optional: FileConfiguration fileConfig = config.getFile();
config. save ( ) ;
Spoiler: More Config methods
Setting
Code (Java):
config. set (PATH, VALUE ) ;
Adding default
Code (Java):
config. addDefault (PATH, VALUE ) ;
Getting an object (goes for anything like getBoolean, getString etc.)
Code (Java):
config. get (PATH ) ;
ConfigurationOptions
Code (Java):
config. options ( )

Sending an actionbar to a player:
Code (Java):
Actionbar. sendActionBar (player, "Hello COLOR CODES COMING SOON" ) ;
Spoiler: Maven
HTML:
    <repositories>
        <repository>
            <id>murapi-repo </id>
            <url>https://commonly.github.io/repo </url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>me.jdog.murapi </groupId>
            <artifactId>mur-api </artifactId>
            <version>1.0.0 </version>
    </dependencies>
Spoiler: Useful 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.

murAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11. Downloaded 435 times (via Spigot). Download it and open it directly in the game.

Explore more