Skip to content

Commit

Permalink
Add query and stat
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Aug 27, 2024
1 parent ca7d6ba commit ebe56a1
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 4 deletions.
3 changes: 3 additions & 0 deletions discord-jda/discord-jda.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
"binaries": [
"java"
]
},
"stats": {
"type": "jcmd"
}
}
8 changes: 7 additions & 1 deletion minecraft-curseforge/minecraft-curseforge.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,11 @@
"image": "eclipse-temurin:${javaversion}"
}
],
"requirements": {}
"requirements": {},
"stats": {
"type": "jcmd"
},
"query": {
"type": "minecraft"
}
}
6 changes: 6 additions & 0 deletions minecraft-ftb/minecraft-ftb.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,11 @@
"requirements": {
"os": "linux",
"arch": "amd64"
},
"stats": {
"type": "jcmd"
},
"query": {
"type": "minecraft"
}
}
5 changes: 4 additions & 1 deletion minecraft-velocity/minecraft-velocity.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,8 @@
"image": "eclipse-temurin:17"
}
],
"requirements": {}
"requirements": {},
"stats": {
"type": "jcmd"
}
}
5 changes: 4 additions & 1 deletion minecraft-waterfall/minecraft-waterfall.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,8 @@
"image": "eclipse-temurin:17"
}
],
"requirements": {}
"requirements": {},
"stats": {
"type": "jcmd"
}
}
8 changes: 7 additions & 1 deletion minecraft/minecraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,5 +338,11 @@
"image": "eclipse-temurin:${javaversion}"
}
],
"requirements": {}
"requirements": {},
"stats": {
"type": "jcmd"
},
"query": {
"type": "minecraft"
}
}
34 changes: 34 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@
"required": [
"variables"
]
},
"stats": {
"type": "object",
"$ref": "#/$defs/statsConfig"
},
"query": {
"type": "object",
"$ref": "#/$defs/queryConfig"
}
},
"$defs": {
Expand Down Expand Up @@ -1013,6 +1021,32 @@
"required": [
"file"
]
},
"statsConfig": {
"type": "object",
"properties": {
"type": {
"enum": [
"jcmd"
]
}
},
"required": [
"type"
]
},
"queryConfig": {
"type": "object",
"properties": {
"type": {
"enum": [
"minecraft"
]
}
},
"required": [
"type"
]
}
}
}

0 comments on commit ebe56a1

Please sign in to comment.