Added sync command

This commit is contained in:
2024-11-12 06:51:42 +00:00
parent a4f595594d
commit ab9f4b0525
14 changed files with 311 additions and 11 deletions

15
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Development Server",
"request": "attach",
"hostName": "localhost",
"port": 5005,
}
]
}

47
.vscode/tasks.json vendored
View File

@@ -2,6 +2,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "Build Plugin to Development Server",
"type": "java (buildArtifact)",
"targetPath": "${workspaceFolder}/devserver/plugins/${workspaceFolderBasename}.jar",
"elements": [
@@ -9,7 +10,49 @@
"${dependencies}"
],
"problemMatcher": [],
"label": "Build SpigotResourceSync to plugins"
},
{
"label": "Install Development Server",
"type": "shell",
"command": "${workspaceFolder}/buildtools/install.sh",
"options": {
"cwd": "${workspaceFolder}/buildtools"
},
"problemMatcher": []
},
{
"label": "Start Development Server",
"type": "shell",
"isBackground": true,
"command": "${workspaceFolder}/devserver/start.sh",
"options": {
"cwd": "${workspaceFolder}/devserver"
},
"dependsOn": [
"Build Plugin to Development Server",
],
"problemMatcher": [
{
"source": "Spigot Server",
"fileLocation": [
"autoDetect",
"${workspaceFolder}/src"
],
"pattern": [
{
"regexp": "^\\[\\d\\d:\\d\\d:\\d\\d\\] \\[[\\w\\s]+\/(\\w+)\\]: ([\\w \".()?]+\n[\\w \".()?:]+)$",
"severity": 1,
"message": 2
},
{
"regexp": "^\\s+at ([\\w.$]+)\\((\\w+\\.java):(\\d+)\\) ~\\[.+:.+\\]$",
"file": 2,
"line": 3,
"loop": true
}
]
}
]
}
]
],
}