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");
}
}