Skip to content

Commit

Permalink
schemas and devcontainer layer
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlan404 committed Jul 17, 2024
1 parent 598d0ef commit 67d7b27
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 0 deletions.
22 changes: 22 additions & 0 deletions features/devcontainer/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/ParadigmMC/devcontainers/mcman": {},
"ghcr.io/devcontainers/features/java:1": {}
},
"customizations": {
"vscode": {
"settings": {
"evenBetterToml.schema.associations": {
"^.*server.toml$": "https://raw.githubusercontent.com/ParadigmMC/mcman-meta/main/schemas/servertoml.schema.json"
}
},
"extensions": [
"tamasfe.even-better-toml"
]
}
}
}
31 changes: 31 additions & 0 deletions schemas/hotreload.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "hotreload.toml",
"description": "mcman hotreload.toml schema",
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": { "type": "string" },
"action": {
"oneOf": [
{
"const": "reload"
},
{
"const": "restart"
},
{
"type": "string",
"pattern": "/.*"
}
]
}
}
}
}
}
}
38 changes: 38 additions & 0 deletions schemas/network.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "network.toml schema",
"description": "Schema for mcman's network.toml file",
"type": "object",
"properties": {
"name": {
"description": "Name of the network",
"type": "string"
},
"proxy": {
"description": "The proxy server's name",
"type": "string"
},
"port": {
"type": "integer",
"default": 25565
},
"servers": {
"description": "Table of servers",
"type": "object",
"additionalProperties": {
"port": {
"type": "integer",
"default": 25565
},
"ip_address": {
"description": "Optional server ip address",
"type": "string"
}
}
},
"variables": {
"description": "Variables shared between all servers",
"type": "object"
}
}
}
Loading

0 comments on commit 67d7b27

Please sign in to comment.