Skip to content

Commit

Permalink
Format and correct template errors
Browse files Browse the repository at this point in the history
Known issues: Formatter is not keeping a consistent order to things, and is sometimes encoding when it should not
  • Loading branch information
LordRalex committed Jan 3, 2024
1 parent ee1f341 commit 1ae0f5e
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 79 deletions.
56 changes: 32 additions & 24 deletions csgo/csgo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,54 @@
"data": {
"clientport": {
"type": "integer",
"value": "27016",
"value": 27016,
"display": "Client Port",
"desc": "What port to bind the clientport to",
"required": true
"required": true,
"userEdit": false
},
"gamemap": {
"type": "string",
"value": "de_dust2",
"display": "Map",
"desc": "Map to load by default",
"required": true,
"userEdit": true
},
"gamemode": {
"type": "integer",
"value": "0",
"value": 0,
"display": "Gamemode",
"desc": "(Advanced) Gamemode",
"required": true,
"userEdit": true
},
"gametype": {
"type": "integer",
"value": "0",
"value": 0,
"display": "Gametype",
"desc": "(Advanced) Gametype",
"required": true,
"userEdit": true
},
"gslt": {
"type": "",
"type": "string",
"value": "",
"display": "GSLT Token",
"desc": "It is required to register your server, otherwise it can only be played on LAN. Visit http://steamcommunity.com/dev/managegameservers to get a token",
"required": true,
"userEdit": true
},
"ip": {
"type": "",
"type": "string",
"value": "0.0.0.0",
"display": "IP",
"desc": "What IP to bind the server to",
"required": true
},
"gamemap": {
"type": "",
"value": "de_dust2",
"display": "Map",
"desc": "Map to load by default",
"required": true,
"userEdit": true
"userEdit": false
},
"mapgroup": {
"type": "integer",
"type": "string",
"value": "mg_active",
"display": "Map group",
"desc": "(Advanced) Map group",
Expand All @@ -58,33 +60,35 @@
},
"maxplayers": {
"type": "integer",
"value": "20",
"value": 20,
"display": "Max Players",
"desc": "Max players allowed on server",
"required": true,
"userEdit": true
},
"port": {
"type": "integer",
"value": "27015",
"value": 27015,
"display": "Port",
"desc": "What port to bind the server to",
"required": true
"required": true,
"userEdit": false
},
"tickrate": {
"type": "integer",
"value": "64",
"value": 64,
"display": "Tickrate",
"desc": "Server tick rate",
"required": true,
"userEdit": true
},
"tvport": {
"type": "integer",
"value": "27017",
"value": 27017,
"display": "GOTV Port",
"desc": "What port to bind the GOTV to",
"required": true
"required": true,
"userEdit": false
}
},
"install": [
Expand All @@ -104,8 +108,12 @@
"run": {
"command": "./srcds_run -game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${tvport} +map ${gamemap} -maxplayers_override ${maxplayers} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +mapgroup ${mapgroup} +game_mode ${gamemode} +game_type ${gametype} -net_port_try 1 -norestart",
"stop": "exit",
"stdin": {},
"stdout": {}
"stdin": {
"type": "stdin"
},
"autostart": false,
"autorecover": false,
"autorestart": false
},
"environment": {
"type": "host"
Expand All @@ -123,4 +131,4 @@
"os": "linux",
"arch": "amd64"
}
}
}
4 changes: 2 additions & 2 deletions discord-py/discord-py.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
},
{
"type": "docker",
"image": "python",
"networkMode": "host"
"networkMode": "host",
"image": "python"
}
],
"requirements": {
Expand Down
12 changes: 6 additions & 6 deletions dontstarvetogether/dontstarvetogether.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,18 @@
},
{
"type": "writefile",
"text": "${servertoken}",
"target": "DoNotStarveTogether/DontStarveTogetherServer/cluster_token.txt"
"target": "DoNotStarveTogether/DontStarveTogetherServer/cluster_token.txt",
"text": "${servertoken}"
},
{
"type": "writefile",
"target": "DoNotStarveTogether/DontStarveTogetherServer/cluster.ini",
"text": "[GAMEPLAY]\ngame_mode = ${gamemode}\nmax_players = ${maxplayers}\npvp = ${pvp}\npause_when_empty = true\n\n[NETWORK]\ncluster_description = ${description}\ncluster_name = ${servername}\ncluster_intention = ${gamestyle}\ncluster_password = ${password}\n\n[MISC]\nconsole_enabled = true\n\n[SHARD]\nshard_enabled = true\nbind_ip = ${ip}\nmaster_ip = ${ip}\nmaster_port = ${port}\ncluster_key = ${servertoken}"
"text": "[GAMEPLAY]\ngame_mode = ${gamemode}\nmax_players = ${maxplayers}\npvp = ${pvp}\npause_when_empty = true\n\n[NETWORK]\ncluster_description = ${description}\ncluster_name = ${servername}\ncluster_intention = ${gamestyle}\ncluster_password = ${password}\n\n[MISC]\nconsole_enabled = true\n\n[SHARD]\nshard_enabled = true\nbind_ip = ${ip}\nmaster_ip = ${ip}\nmaster_port = ${port}\ncluster_key = ${servertoken}",
"target": "DoNotStarveTogether/DontStarveTogetherServer/cluster.ini"
},
{
"type": "writefile",
"text": "#!/bin/bash\n\ninstall_dir=\"${rootDir}\"\ncluster_name=\"DontStarveTogetherServer\"\ndontstarve_dir=\"${rootDir}\"\n\ncd \"$install_dir/bin\"\n\n./dontstarve_dedicated_server_nullrenderer -persistent_storage_root \"${rootDir}\" -console -cluster \"$cluster_name\" -monitor_parent_process $$",
"target": "start.sh"
"target": "start.sh",
"text": "#!/bin/bash\n\ninstall_dir=\"${rootDir}\"\ncluster_name=\"DontStarveTogetherServer\"\ndontstarve_dir=\"${rootDir}\"\n\ncd \"$install_dir/bin\"\n\n./dontstarve_dedicated_server_nullrenderer -persistent_storage_root \"${rootDir}\" -console -cluster \"$cluster_name\" -monitor_parent_process $$"
},
{
"type": "command",
Expand Down
4 changes: 2 additions & 2 deletions eco/eco.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
},
{
"type": "writefile",
"text": "{\n \"PublicServer\": false,\n \"Password\": \"${password}\",\n \"Description\": \"\",\n \"IPAddress\": \"${ip}\",\n \"GameServerPort\": ${port},\n \"WebServerPort\": ${webServerPort},\n \"Rate\": 10,\n \"MaxConnections\": -1\n}",
"target": "Configs/Network.eco"
"target": "Configs/Network.eco",
"text": "{\n \"PublicServer\": false,\n \"Password\": \"${password}\",\n \"Description\": \"\",\n \"IPAddress\": \"${ip}\",\n \"GameServerPort\": ${port},\n \"WebServerPort\": ${webServerPort},\n \"Rate\": 10,\n \"MaxConnections\": -1\n}"
}
],
"run": {
Expand Down
62 changes: 37 additions & 25 deletions minecraft-ftb/minecraft-ftb.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,75 @@
"data": {
"eula": {
"type": "boolean",
"value": "false",
"value": false,
"display": "EULA Agreement",
"desc": "Do you (or the server owner) agree to the \u003ca href='https://account.mojang.com/documents/minecraft_eula'\u003eMinecraft EULA?\u003c/a\u003e",
"required": true
"desc": "Do you (or the server owner) agree to the <a href='https://account.mojang.com/documents/minecraft_eula'>Minecraft EULA?</a>",
"required": true,
"userEdit": false
},
"ip": {
"type": "",
"type": "string",
"value": "0.0.0.0",
"display": "IP",
"desc": "What IP to bind the server to",
"required": true
"required": true,
"userEdit": false
},
"javaversion": {
"type": "integer",
"value": "8",
"value": 8,
"display": "Java Version",
"desc": "Version of Java to use"
"desc": "Version of Java to use",
"required": false,
"userEdit": false
},
"memory": {
"type": "integer",
"value": "4096",
"value": 4096,
"display": "Memory (MB)",
"desc": "How much memory in MB to allocate to the Java Heap",
"required": true
"required": true,
"userEdit": false
},
"modpack_id": {
"type": "integer",
"value": "",
"value": 0,
"display": "Modpack ID",
"desc": "Get the modpack ID for your preffered modpack in the \u003ca href='https://www.feed-the-beast.com/modpack' target='_blank'\u003eModpacklist\u003c/a\u003e.",
"desc": "Get the modpack ID for your preffered modpack in the <a href='https://www.feed-the-beast.com/modpack' target='_blank'>Modpacklist</a>.",
"required": true,
"userEdit": true
},
"modpack_version": {
"type": "integer",
"value": "",
"value": 0,
"display": "Modpack version ID",
"desc": "Version ID from the versions tab of the selected modpack in the \u003ca href='https://www.feed-the-beast.com/modpack' target='_blank'\u003eModpacklist\u003c/a\u003e.",
"desc": "Version ID from the versions tab of the selected modpack in the <a href='https://www.feed-the-beast.com/modpack' target='_blank'>Modpacklist</a>.",
"required": true,
"userEdit": true
},
"motd": {
"type": "",
"type": "string",
"value": "A Minecraft Server hosted on PufferPanel",
"display": "MOTD message of the day",
"desc": "This is the message that is displayed in the server list of the client, below the name. The MOTD does support \u003ca href='https://minecraft.gamepedia.com/Formatting_codes' target='_blank'\u003ecolor and formatting codes\u003c/a\u003e.",
"required": true
"desc": "This is the message that is displayed in the server list of the client, below the name. The MOTD does support <a href='https://minecraft.gamepedia.com/Formatting_codes' target='_blank'>color and formatting codes</a>.",
"required": true,
"userEdit": false
},
"port": {
"type": "integer",
"value": "25565",
"value": 25565,
"display": "Port",
"desc": "What port to bind the server to",
"required": true
"required": true,
"userEdit": false
},
"version": {
"type": "string",
"value": "",
"display": "Version",
"desc": "Version of Forge that is shipped with the modpack with no spaces (may be located \u003ca href='http://files.minecraftforge.net/'\u003ehere\u003c/a\u003e",
"required": true
"desc": "Version of Forge that is shipped with the modpack with no spaces (may be located <a href='http://files.minecraftforge.net/'>here</a>",
"required": true,
"userEdit": false
}
},
"install": [
Expand All @@ -81,14 +89,14 @@
]
},
{
"if": "os == 'linux' && arch == 'amd64'",
"if": "os == 'linux' \u0026\u0026 arch == 'amd64'",
"type": "download",
"files": [
"https://api.modpacks.ch/public/modpack/${modpack_id}/${modpack_version}/server/linux"
]
},
{
"if": "os == 'linux' && arch == 'arm64'",
"if": "os == 'linux' \u0026\u0026 arch == 'arm64'",
"type": "download",
"files": [
"https://api.modpacks.ch/public/modpack/${modpack_id}/${modpack_version}/server/arm/linux"
Expand Down Expand Up @@ -153,8 +161,12 @@
}
],
"stop": "stop",
"stdin": {},
"stdout": {}
"stdin": {
"type": "stdin"
},
"autostart": false,
"autorecover": false,
"autorestart": false
},
"environment": {
"type": "host"
Expand All @@ -172,4 +184,4 @@
"os": "linux",
"arch": "amd64"
}
}
}
4 changes: 2 additions & 2 deletions minecraft-waterfall/minecraft-waterfall.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
},
{
"type": "writefile",
"target": "config.yml",
"text": "listeners:\n- query_port: ${port}\n host: ${ip}:${port}\n motd: '${motd}'\n"
"text": "listeners:\n- query_port: ${port}\n host: ${ip}:${port}\n motd: '${motd}'\n",
"target": "config.yml"
}
],
"run": {
Expand Down
16 changes: 8 additions & 8 deletions minecraft/minecraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@
{
"if": "modlauncher == 'forge'",
"type": "forgedl",
"version": "${forgebuild}",
"target": "installer.jar"
"target": "installer.jar",
"version": "${forgebuild}"
},
{
"if": "modlauncher == 'forge' \u0026\u0026 env == 'host'",
Expand Down Expand Up @@ -276,8 +276,8 @@
{
"if": "modlauncher == 'magma'",
"type": "move",
"source": "Magma-*.jar",
"target": "server.jar"
"target": "server.jar",
"source": "Magma-*.jar"
},
{
"if": "modlauncher == 'mohist'",
Expand Down Expand Up @@ -335,8 +335,8 @@
{
"if": "modlauncher == 'quilt'",
"type": "move",
"source": "quilt-server-launch.jar",
"target": "server.jar"
"target": "server.jar",
"source": "quilt-server-launch.jar"
},
{
"if": "modlauncher == 'spigot'",
Expand All @@ -362,8 +362,8 @@
{
"if": "modlauncher == 'spigot'",
"type": "move",
"target": "server.jar",
"source": "spigot-*.jar"
"source": "spigot-*.jar",
"target": "server.jar"
},
{
"if": "!file_exists(\"server.properties\")",
Expand Down
12 changes: 6 additions & 6 deletions stn/stn.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
},
{
"type": "writefile",
"target": "Config/ServerUsers_README.txt",
"text": "The ServerUsers.txt file stores all the players that have ever been on a server. Altering this file directly should not generally be required. \n\nThe main reason to edit this file would be to increase a players user group. The number directly after the long Steam ID. When in game players can promote other player to any rank that is lower than their own. To set a rank in-game. \n\n/setrank userName indexOfRank\nOr\n/setrank userName rankName\n\n\nExample user: 76561198004636696,3,false,false,Jayty"
"text": "The ServerUsers.txt file stores all the players that have ever been on a server. Altering this file directly should not generally be required. \n\nThe main reason to edit this file would be to increase a players user group. The number directly after the long Steam ID. When in game players can promote other player to any rank that is lower than their own. To set a rank in-game. \n\n/setrank userName indexOfRank\nOr\n/setrank userName rankName\n\n\nExample user: 76561198004636696,3,false,false,Jayty",
"target": "Config/ServerUsers_README.txt"
},
{
"type": "writefile",
Expand All @@ -91,13 +91,13 @@
},
{
"type": "writefile",
"text": "{\n \n\t\"SystemRanks\":[\n {\n\t \"Index_DontChange\":-2,\n \"Name_DontChange\":\"Console\",\n \"ChatPrefix\":\"[Console]\",\n \"PrefixColour\":\"white\"\n },\n\t{\n\t \"Index_DontChange\":-1,\n \"Name_DontChange\":\"Whisper\",\n \"ChatPrefix\":\"[Whisper]\",\n \"PrefixColour\":\"darkgrey\"\n }\n\t],\n\t\"UserRanks\":[\n {\n \"Index\":0,\n \"Rank\":\"User\",\n \"ChatPrefix\":\"[User]\",\n \"PrefixColour\":\"white\",\n \"Permissions\":[\"Tell\", \"Reply\", \"ServerInfo\"]\n },\n {\n \"Index\":1,\n \"Rank\":\"Mod\",\n \"ChatPrefix\":\"[Mod]\",\n \"PrefixColour\":\"yellow\",\n \"Permissions\":[\"Tell\", \"Reply\", \"Mute\", \"UnMute\", \"Kick\", \"GodSelf\", \"SuperSprint\", \"cmdGroup.TP\", \"DropAllSelf\", \"DropAllOthers\", \"Up\" ,\"ServerInfo\"]\n },\n {\n \"Index\":2,\n \"Rank\":\"Admin\",\n \"ChatPrefix\":\"[Admin]\",\n \"PrefixColour\":\"darkred\",\n \"Permissions\":[\"*\"]\n },\n {\n \"Index\":3,\n \"Rank\":\"Owner\",\n \"ChatPrefix\":\"[Owner]\",\n \"PrefixColour\":\"purple\",\n \"Permissions\":[\"Tell\", \"Reply\", \"Mute\", \"UnMute\", \"Kick\", \"SetTime\", \"Ban\", \"UnBan\", \"ServerInfo\"]\n } \n ], \n \"CommandGroups\":[\n {\n \"GroupName\":\"TP\",\n \"Permissions\":[\"TpToLocation\",\"TpToLocation\", \"TpToPlayer\", \"TpPlayerToMe\", \"TpPlayerToPlayer\"]\n },\n {\n \"GroupName\":\"Weather\",\n \"Permissions\":[\"SetTime\", \"SetMonth\", \"SetWeather\", \"WeatherOnOff\"]\n },\n {\n \"GroupName\":\"ExampleGroupNinjaMod\",\n \"Permissions\":[\"Kick\", \"Mute\", \"GodSelf\"]\n }\n ]\n}",
"target": "Config/UserPermissions.json"
"target": "Config/UserPermissions.json",
"text": "{\n \n\t\"SystemRanks\":[\n {\n\t \"Index_DontChange\":-2,\n \"Name_DontChange\":\"Console\",\n \"ChatPrefix\":\"[Console]\",\n \"PrefixColour\":\"white\"\n },\n\t{\n\t \"Index_DontChange\":-1,\n \"Name_DontChange\":\"Whisper\",\n \"ChatPrefix\":\"[Whisper]\",\n \"PrefixColour\":\"darkgrey\"\n }\n\t],\n\t\"UserRanks\":[\n {\n \"Index\":0,\n \"Rank\":\"User\",\n \"ChatPrefix\":\"[User]\",\n \"PrefixColour\":\"white\",\n \"Permissions\":[\"Tell\", \"Reply\", \"ServerInfo\"]\n },\n {\n \"Index\":1,\n \"Rank\":\"Mod\",\n \"ChatPrefix\":\"[Mod]\",\n \"PrefixColour\":\"yellow\",\n \"Permissions\":[\"Tell\", \"Reply\", \"Mute\", \"UnMute\", \"Kick\", \"GodSelf\", \"SuperSprint\", \"cmdGroup.TP\", \"DropAllSelf\", \"DropAllOthers\", \"Up\" ,\"ServerInfo\"]\n },\n {\n \"Index\":2,\n \"Rank\":\"Admin\",\n \"ChatPrefix\":\"[Admin]\",\n \"PrefixColour\":\"darkred\",\n \"Permissions\":[\"*\"]\n },\n {\n \"Index\":3,\n \"Rank\":\"Owner\",\n \"ChatPrefix\":\"[Owner]\",\n \"PrefixColour\":\"purple\",\n \"Permissions\":[\"Tell\", \"Reply\", \"Mute\", \"UnMute\", \"Kick\", \"SetTime\", \"Ban\", \"UnBan\", \"ServerInfo\"]\n } \n ], \n \"CommandGroups\":[\n {\n \"GroupName\":\"TP\",\n \"Permissions\":[\"TpToLocation\",\"TpToLocation\", \"TpToPlayer\", \"TpPlayerToMe\", \"TpPlayerToPlayer\"]\n },\n {\n \"GroupName\":\"Weather\",\n \"Permissions\":[\"SetTime\", \"SetMonth\", \"SetWeather\", \"WeatherOnOff\"]\n },\n {\n \"GroupName\":\"ExampleGroupNinjaMod\",\n \"Permissions\":[\"Kick\", \"Mute\", \"GodSelf\"]\n }\n ]\n}"
},
{
"type": "writefile",
"text": "The UserPermissions.json file contains the base set of user groups and permissions. The UserPermissions.json can be changed while the server is offline in order to setup ranks and their perms. \n\nBy default base user groups such as 'User' (All general users) right through to 'Owner' status is setup. Any user group that has the permission '*' has access to ALL in game commands and this should be used sparingly.\n\nEditing: The most important thing when editing is to ensure that the json architecture is maintained. Otherwise the server will fail to read the file and not run.\n\nList of all perms. Note that some may not work as expect or work at all.\n\n BasicUser, \n DropAllSelf,\n DropAllOthers,\n DeleteAllSelf,\n DeleteAllOthers,\n SpawnAI,\n KillAI,\n SetTime,\n SetMonth,\n SetWeather,\n WeatherOnOff,\n TpToLocation,\n TpToPlayer,\n TpPlayerToMe,\n TpPlayerToPlayer,\n TpPresets,\n GodSelf,\n SuperSprint,\n ServerInfo,\n Give,\n Mute,\n Kick,\n Ban,\n UnBan,\n SetStatsSelf,\n SetStatsOthers,\n KillPlayer,\n SetRank,\n CleanUp,\n Up,\n AlwaysSafeLogOff,\n StuckOthers,\n ChatOff,\n Video,\n Restart",
"target": "Config/UserPermissions_README.txt"
"target": "Config/UserPermissions_README.txt",
"text": "The UserPermissions.json file contains the base set of user groups and permissions. The UserPermissions.json can be changed while the server is offline in order to setup ranks and their perms. \n\nBy default base user groups such as 'User' (All general users) right through to 'Owner' status is setup. Any user group that has the permission '*' has access to ALL in game commands and this should be used sparingly.\n\nEditing: The most important thing when editing is to ensure that the json architecture is maintained. Otherwise the server will fail to read the file and not run.\n\nList of all perms. Note that some may not work as expect or work at all.\n\n BasicUser, \n DropAllSelf,\n DropAllOthers,\n DeleteAllSelf,\n DeleteAllOthers,\n SpawnAI,\n KillAI,\n SetTime,\n SetMonth,\n SetWeather,\n WeatherOnOff,\n TpToLocation,\n TpToPlayer,\n TpPlayerToMe,\n TpPlayerToPlayer,\n TpPresets,\n GodSelf,\n SuperSprint,\n ServerInfo,\n Give,\n Mute,\n Kick,\n Ban,\n UnBan,\n SetStatsSelf,\n SetStatsOthers,\n KillPlayer,\n SetRank,\n CleanUp,\n Up,\n AlwaysSafeLogOff,\n StuckOthers,\n ChatOff,\n Video,\n Restart"
}
],
"run": {
Expand Down
Loading

0 comments on commit 1ae0f5e

Please sign in to comment.