Home›Java›Mods›[ExtraApi] Easy to create your plugin!
[ExtraApi] Easy to create your plugin!
ModsJava

[ExtraApi] Easy to create your plugin!

Java mod listed for Minecraft 1.7–1.8. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
ExtraApi v0.1.1


Requerimentos - Requeriments:


Oque ele contem :

Titles:
Code (Text):
Title title = new Title("Titulo", "SubTitulo");
title.sendToAllPlayers();
title.sendToPlayer(player);
ActionBar:
Code (Text):
ActionBar bar = new ActionBar();
bar.sendToAllPlayers("Cole");
bar.sendToPlayer(player, "Mensagem");
ItemBuilder e Glow:
Code (Text):
ItemStack it = new ItemBuilder(material, "nome", quantidade, list<String> lore).toItemStack();
p.getInventory().addItem(new GlowItem(it).addGlow());
Particles:
Code (Text):
Particle snowParticle = new Particle(tipo, loc, xOffset, yOffset, zOffset, speed, count);
snowParticle.sendToAllPlayers();
snowParticle.sendToPlayer(p);
GuiUtils:
Code (Text):
GuiUtils warp = new GuiUtils(name, size, holder);
warp.setItem/add/ bla bla bla
warp.openInv(player);
MySQL:
Code (Text):
public class ExtraApi extends JavaPlugin{
     
    public MySQL mysql;

    public void onEnable() {
            mysql = new MySQL(user, pass, host, db);
            mysql.connect();
    }
 
    public void onDisable() {

    }      
}
Vault - Exemplo de Uso:
Code (Text):
public class ExtraApi extends JavaPlugin{
 
    private Vault vault;
 
    public void onEnable() {
        Bukkit.getConsoleSender().sendMessage("[ExtraApi] Ativado");
        Bukkit.getConsoleSender().sendMessage("[ExtraApi] Versao: " + getDescription().getVersion());
        Bukkit.getConsoleSender().sendMessage("[ExtraApi] Autor: ExtraPlays");
        this.vault = new Vault();
        vault.setupEconomy();
    }
 
    public void onDisable() {
        Bukkit.getConsoleSender().sendMessage("[ExtraApi] Desativado");
        Bukkit.getConsoleSender().sendMessage("[ExtraApi] Versao: " + getDescription().getVersion());
        Bukkit.getConsoleSender().sendMessage("[ExtraApi] Autor: ExtraPlays");
    }  
 
    public Vault getVault(){
        return this.vault;
    }

}
CommandMap - Exemplo de Uso:

Agora ao invés de vocês implementarem CommandExecutor deem um extends ExtraCommand !!!!


Classe do Comando:
Code (Text):
public class Comando extends ExtraCommand{

    public Comando(String cmd, String usage, String description) {
        super(cmd, usage, description);
    }

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (cmd.getName().equalsIgnoreCase("xablau")){
            Player p = (Player)sender;
            p.sendMessage("OI");
        }
        return false;
    }

}
Classe Principal:
Code (Text):
public class ExtraApi extends JavaPlugin{
     
    public Comando comando;

    public void onEnable() {
            //                   [comando]      [uso]      [descrição]
            comando = new Comando("xablau", "/<command>", "Mata Todos");
    }
 
    public void onDisable() {

    }      
}
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.

[ExtraApi] Easy to create your plugin! is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8. Downloaded 177 times (via Spigot). Download it and open it directly in the game.

Explore more