def client
client = {:files => [],
:dependencies => @dependencies.clone,
:description => "Client plugin for #{@metadata[:name]}"}
clientdir = File.join(@path, "application")
aggregatedir = File.join(@path, "aggregate")
client[:files] += Dir.glob(File.join(clientdir, "*")) if PluginPackager.check_dir_present clientdir
client[:files] += Dir.glob(File.join(aggregatedir, "*")) if PluginPackager.check_dir_present aggregatedir
client[:plugindependency] = {:name => "#{@mcname}-#{@metadata[:name]}-common", :version => @metadata[:version], :revision => @revision}
client[:files].empty? ? nil : client
end