Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Added metadata inference support for Velocity Plugins (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d authored Aug 18, 2023
1 parent cd22e17 commit ce99581
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helpers/infer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce99581

Please sign in to comment.