Home›Java›Mods›ChatAPI
ChatAPI
ModsJava

ChatAPI

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
[​IMG]
Placeholders.


Usage:
inside onEnable():
Code (Text):
if(this.getServer().getPluginManager().getPlugin("ChatAPI") != null){

        this.getLogger().info("Enabled!");
        }else{
            this.getLogger().info("ChatAPI is not installed!");
            getServer().getPluginManager().disablePlugin(this);
        }
    }
Methods:

Code (Text):
Messages chatapi = new Messages();
chatapi.BroadcastToWorld(<World>, "message");
chatapi.BroadcastToServer("message");
chatapi.sendMessage(<Player>, "message");
 
Events:
Code (Text):
@EventHandler
    public void onBroadcast(BroadcastEvent e){
        Bukkit.broadcastMessage("Broadcast Event");
    }  
@EventHandler
    public void onMessage(SendMessageEvent e){
        Bukkit.broadcastMessage("Message Event");
    }
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.

ChatAPI is a free Minecraft Java mod. Downloaded 191 times (via Spigot). Download it and open it directly in the game.

Explore more