1
0

Added metadata inference support for Velocity Plugins (#1296)

This commit is contained in:
Adrian
2023-08-18 14:00:18 -05:00
committed by GitHub
parent cd22e1779d
commit ce995812d4

View File

@@ -231,6 +231,17 @@ export const inferVersionInfo = async function (rawFile, project, gameVersions)
loaders: ['bungeecord'],
}
},
// Velocity
'velocity-plugin.json': (file) => {
const metadata = JSON.parse(file)
return {
name: `${project.title} ${metadata.version}`,
version_number: metadata.version,
version_type: versionType(metadata.version),
loaders: ['velocity'],
}
},
// Modpacks
'modrinth.index.json': (file) => {
const metadata = JSON.parse(file)