Skip to content

Instantly share code, notes, and snippets.

@JSH32
Created July 7, 2021 09:34
Show Gist options
  • Save JSH32/0450807e6b8784a703f8373d2ac91c23 to your computer and use it in GitHub Desktop.
Save JSH32/0450807e6b8784a703f8373d2ac91c23 to your computer and use it in GitHub Desktop.
VSCode settings for debugging Minecraft plugins
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch server",
"preLaunchTask": "runserver",
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "java",
"targetPath": "/root/projects/MCServer/plugins/${workspaceFolderBasename}.jar",
"elements": [
"${compileOutput}",
"${dependencies}"
],
"problemMatcher": [],
"label": "package"
},
{
"label": "runserver",
"command": "java", // Could be any other shell command
"args": ["-Xmx1024M", "-Xms1024M", "-jar", "paper-1.17-79.jar", "nogui"],
"type": "shell",
"options": {
"cwd": "/root/projects/MCServer"
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"dependsOn": [ "package" ]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment