public void onEnable() {
        instance = this;
        getConfig().options().copyDefaults(true);
        saveConfig();
        Server server = getServer();
        ConsoleCommandSender console = server.getConsoleSender();

        if(getConfig().getString( "Send Stats" ).equals("enabled" ) ) {
            try {
                Metrics metrics = new Metrics(this);
                metrics.start();
                console.sendMessage("MC Stats (Metrics) is enabled!");
            } catch (IOException e) {
                // Failed to submit the stats :-( <-- Dat face doe
            }
        }

        console.sendMessage(ChatColor.GREEN + "======== ExtraEnchantments! ========");
        console.sendMessage(ChatColor.GREEN + "=========== VERSION: 0.1 ===========");
        console.sendMessage(ChatColor.GREEN + "======== BY CONNOR LINFOOT! ========");

        try{
            try {
                Field f = Enchantment.class.getDeclaredField("acceptingNew");
                f.setAccessible(true);
                f.set(null, true);
            } catch (Exception e) {
                e.printStackTrace();
            }
            try {
                Enchantment.registerEnchantment(ench);
            } catch (IllegalArgumentException e){
//if this is thrown it means the id is already taken.
            }
        }catch(Exception e){
            e.printStackTrace();
        }



        //Bukkit.getPluginManager().registerEvents(new Test(), this);
        Bukkit.getPluginManager().registerEvents(new Smeltery(), this);
        Bukkit.getPluginManager().registerEvents(new Resistance(), this);
        Bukkit.getPluginManager().registerEvents(new Blowback(), this);
        Bukkit.getPluginManager().registerEvents(new LifeTouch(), this);
        //Bukkit.getPluginManager().registerEvents(new AnvilBlock(), this);

        getCommand("ee").setExecutor(new EE());

    }