public void InitPlugins(){
        System.out.println("Lua path = "+MyPlugin.plugDir);
        if(!plugList.isDirectory() || plugList.exists()){
            plugList.mkdirs();
        }
        
        File[] folderlist = plugList.listFiles();
        
        if(plugList.list().length != 0){
            //int counter = 0;
            //LuaPlugin plg;
            for( File fileName : folderlist){
                if(fileName.isDirectory() && (new File(fileName.getAbsolutePath()+File.separator+"plugin.lua").exists())){
                    plugin.addElement((new LuaPlugin(fileName.getAbsolutePath()+File.separator+"plugin.lua")));
                   // plg = (LuaPlugin)plugin.get(counter);
                   // plg.init(fileName.getAbsolutePath()+File.separator+"plugin.lua");
                   // plg = null;
                   // counter++;
                }
            }
            //counter = 0;
        }else System.out.println(MyPlugin.logPrefix+"no lua plugins found");
    }