File tree Expand file tree Collapse file tree 7 files changed +49
-43
lines changed
Expand file tree Collapse file tree 7 files changed +49
-43
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "name" : " ShowScript Development" ,
3+ "build" : {
4+ "dockerfile" : " sandbox/Dockerfile" ,
5+ "args" : {
6+ "VARIANT" : " 11" ,
7+ "INSTALL_MAVEN" : " true" ,
8+ "INSTALL_GRADLE" : " true"
9+ }
10+ },
11+ "customizations" : {
12+ "vscode" : {
13+ "settings" : {
14+ "terminal.integrated.shell.linux" : " /bin/bash"
15+ },
16+ "extensions" : [
17+ " vscjava.vscode-java-pack" ,
18+ " vscjava.vscode-maven" ,
19+ " vscjava.vscode-gradle" ,
20+ " vscjava.vscode-java-test" ,
21+ " vscjava.vscode-java-debug" ,
22+ " vscjava.vscode-java-dependency" ,
23+ " groovy.groovy" ,
24+ " redhat.vscode-yaml"
25+ ]
26+ }
27+ },
28+ "postCreateCommand" : " bash /workspaces/ShowScript/sandbox/scripts/setup-environment.sh" ,
29+ "runArgs" : [
30+ " --name" , " showscript_dev_container" ,
31+ " -p" , " 25565:25565"
32+ ],
33+ "forwardPorts" : [25565 ],
34+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ EXPOSE 25565
2020COPY setup-environment.sh /setup-environment.sh
2121RUN chmod +x /setup-environment.sh
2222
23- ENTRYPOINT [ "/start " ]
23+ ENTRYPOINT [ "" ]
Original file line number Diff line number Diff line change 1- PluginName,DirectDownloadURL
2- EssentialsX ,https://example.com/essentialsx.jar
3- WorldEdit ,https://example.com/worldedit.jar
1+ EssentialsX,https://ci.ender.zone/job/EssentialsX/lastSuccessfulBuild/artifact/jars/EssentialsX-2.21.0-dev+81-cde7184.jar
2+ WorldEdit ,https://dev.bukkit.org/projects/worldedit/files/2597538/download
3+ WorldGuard ,https://dev.bukkit.org/projects/worldguard/files/2610618/download
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ cd "$(dirname "$0")/../.."
77./gradlew build
88
99# Ensure the plugins directory exists
10- mkdir -p /workspaces/showscriptsandbox /plugins
10+ mkdir -p /workspaces/ShowScript/sandbox/server /plugins
1111
1212# Move the built plugin jar to the plugins directory
13- mv build/libs/showscript.jar /workspaces/showscriptsandbox /plugins/
13+ mv build/libs/showscript.jar /workspaces/ShowScript/sandbox/server /plugins/
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Navigate to the plugins directory
4- cd /workspaces/showscriptsandbox /plugins
4+ cd /workspaces/ShowScript/sandbox/server /plugins
55
66# Read each line from the CSV file
77while IFS=, read -r pluginName directDownloadUrl
1414 else
1515 echo " $pluginName already exists, skipping download."
1616 fi
17- done < /workspaces/showscriptsandbox /plugins.csv
17+ done < /workspaces/ShowScript/sandbox /plugins.csv
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Run script to build ShowScript
4- bash /workspaces/showscriptsandbox /scripts/build-plugin.sh
4+ bash /workspaces/ShowScript/sandbox /scripts/build-plugin.sh
55
66# Run script to fetch other plugins if they don't exist
7- bash /workspaces/showscriptsandbox/scripts/download-plugins.sh
7+ bash /workspaces/ShowScript/sandbox/scripts/download-plugins.sh
8+
9+
810
911# Start the Minecraft server
10- cd /workspaces/showscriptsandbox
12+ cd /workspaces/ShowScript/sandbox
1113
14+ ln -s /workspaces/ShowScript/sandbox/server /data
1215
1316# Attach the VSCode Console to the Minecraft server
1417# Note: Implementation depends on the specific method used to start the server and VSCode integration
18+ code --command workbench.action.tasks.runTask ' Minecraft Server'
You can’t perform that action at this time.
0 commit comments