Skip to content

Commit 00363d2

Browse files
committed
Pending changes exported from your codespace
1 parent 6243275 commit 00363d2

File tree

7 files changed

+49
-43
lines changed

7 files changed

+49
-43
lines changed

.devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

devcontainer.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

sandbox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ EXPOSE 25565
2020
COPY setup-environment.sh /setup-environment.sh
2121
RUN chmod +x /setup-environment.sh
2222

23-
ENTRYPOINT [ "/start" ]
23+
ENTRYPOINT [ "" ]

sandbox/plugins.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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

sandbox/scripts/build-plugin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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/

sandbox/scripts/download-plugins.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
77
while IFS=, read -r pluginName directDownloadUrl
@@ -14,4 +14,4 @@ do
1414
else
1515
echo "$pluginName already exists, skipping download."
1616
fi
17-
done < /workspaces/showscriptsandbox/plugins.csv
17+
done < /workspaces/ShowScript/sandbox/plugins.csv

sandbox/setup-environment.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
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'

0 commit comments

Comments
 (0)