Package com.killruana.zcraft

Source Code of com.killruana.zcraft.ZCraftPlugin

package com.killruana.zcraft;

import com.killruana.zcraft.administration.ChuckPluginCommand;
import com.killruana.zcraft.administration.HaxPluginCommand;
import com.killruana.zcraft.administration.InvPluginCommand;
import com.killruana.zcraft.administration.KillBanCommand;
import com.killruana.zcraft.random.Dice;
import com.killruana.zcraft.random.Random;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.plugin.Plugin;

public class ZCraftPlugin extends JavaPlugin {
 
    public void onDisable() {
    }

    public void onEnable() {
        PluginDescriptionFile pdfFile = this.getDescription();
        System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
        setupPermissions(); // fonction pour les permissions

        // Module Random
        getCommand("dice").setExecutor(new Dice(this));
        getCommand("random").setExecutor(new Random(this));

        // Module Administration
        getCommand("inv").setExecutor(new InvPluginCommand(this));
        getCommand("hax").setExecutor(new HaxPluginCommand(this));
        getCommand("chuck").setExecutor(new ChuckPluginCommand(this));
        getCommand("kban").setExecutor(new KillBanCommand(this));
    }


    private void setupPermissions() {
        Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");


    }
}
TOP

Related Classes of com.killruana.zcraft.ZCraftPlugin

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.