Skip to content

Instantly share code, notes, and snippets.

@and7ey
Created May 16, 2024 19:00
Show Gist options
  • Save and7ey/bd5613ad57d2c36b43f5e85b8d60f334 to your computer and use it in GitHub Desktop.
Save and7ey/bd5613ad57d2c36b43f5e85b8d60f334 to your computer and use it in GitHub Desktop.
Sublime Build to upload Pocketmine plugins and start the server
// http://www.sublimetext.com/docs/3/build_systems.html
{
"keyfiles": ["plugin.yml"],
"quiet": true,
// "syntax": "Packages/ShellScript/Bash.sublime-syntax",
"variants":
[
{
"name": "Pack & upload plugin",
"shell_cmd": "/Users/andrey/Documents/Dev/Other/MinecraftPMMP/packPlugin.command $folder"
},
{
"name": "Start the server",
"shell_cmd": "'printf' '%s\\n' $' on run(argv)\\n tell application \"Terminal\" to do script item 1 of argv\\n end' | 'osascript' '--' '-' ''\\''ssh'\\'' '\\''root@1.2.3.4'\\'' -t '\\''./start.sh; bash -l'\\'''"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment