Created
July 7, 2021 09:34
-
-
Save JSH32/0450807e6b8784a703f8373d2ac91c23 to your computer and use it in GitHub Desktop.
VSCode settings for debugging Minecraft plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "java", | |
"name": "Launch server", | |
"preLaunchTask": "runserver", | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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