@Override
    public void onEnable(){ 
        
        File sirilogdir =   new File("plugins" + File.separator + "SiriLog");
        File sirilog =      new File("plugins" + File.separator + "SiriLog" + File.separator + "sirilog.log");
        File sirilogconf =  new File("plugins" + File.separator + "SiriLog" + File.separator + "config.yml");
        
        if (!(sirilog.exists())){
            try {
                sirilogdir.mkdir();
                sirilog.createNewFile();
            } catch (IOException ex) {
                System.out.println("Error creating the log file");
            }
        }
        
        if (!(sirilogconf.exists())){
            try {
                sirilogconf.createNewFile();
            } catch (IOException ex) {
                System.out.println("Error creating the config file");
            }
        }
        
        rConfig();
        
        if (Configs.config.getBoolean("log.breakblock")){
            getServer().getPluginManager().registerEvents(new Listenbreak(), this);
        }
        if (Configs.config.getBoolean("log.placeblock")){
            getServer().getPluginManager().registerEvents(new Listenput(), this);
        }
        if (Configs.config.getBoolean("log.playerinteractions")){
            getServer().getPluginManager().registerEvents(new Listenuse(), this);
        }
        if (Configs.config.getBoolean("log.openchest")){
            getServer().getPluginManager().registerEvents(new Listenchest(), this);
        }
        if (Configs.config.getBoolean("log.explosions")){
            getServer().getPluginManager().registerEvents(new Listenexplode(), this);
        }
        
        getServer().getPluginManager().registerEvents(new Listenwand(), this);
        
        getLogger().info("SiriLog started fine");
    }