Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 731048a

Browse files
committed
Switched to java 17 lts
1 parent 8e2346a commit 731048a

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

MineColab.ipynb

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"colab_type": "text"
2222
},
2323
"source": [
24-
"<a href=\"https://colab.research.google.com/github/thecoder-001/MineColab/blob/master/MineColab.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
24+
"<a href=\"https://colab.research.google.com/github/thecoder-001/MineColab/blob/1.18-support/MineColab.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
2525
]
2626
},
2727
{
@@ -58,16 +58,16 @@
5858
"\n",
5959
"# Update the package lists\n",
6060
"!sudo apt update &>/dev/null && echo \"apt cache successfully updated\" || echo \"apt cache update failed, you might receive stale packages\"\n",
61-
"# Install OpenJDK 16\n",
62-
"!wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -\n",
63-
"!sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ &>/dev/null || echo \"Failed to add repo. Still can be ignored if openjdk16 gets installed.\"\n",
64-
"!sudo apt-get install adoptopenjdk-16-openj9 &>/dev/null && echo \"Yay! Openjdk16 has been successfully installed.\" || echo \"Failed to install OpenJdk16.\"\n",
61+
"# Install OpenJDK 17\n",
62+
"# !wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -\n",
63+
"# !sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ &>/dev/null || echo \"Failed to add repo. Still can be ignored if openjdk17 gets installed.\"\n",
64+
"!sudo apt-get install openjdk-17-jre-headless &>/dev/null && echo \"Yay! Openjdk17 has been successfully installed.\" || echo \"Failed to install OpenJdk17.\"\n",
6565
"#Perform java version check\n",
6666
"java_ver = !java -version 2>&1 | awk -F[\\\"\\.] -v OFS=. 'NR==1{print $2}'\n",
67-
"if java_ver[0] == \"16\" :\n",
68-
" print(\"Openjdk16 is working correctly, you are good to go.\")\n",
67+
"if java_ver[0] == \"17\" :\n",
68+
" print(\"Openjdk17 is working correctly, you are good to go.\")\n",
6969
"else:\n",
70-
" print(\"Openjdk16 doesn't seems to be installed or isn't working, falling back to java\", java_ver[0], \". You might experience reduced performance. Minecraft 1.17 and above might fail to launch.\")\n",
70+
" print(\"Openjdk17 doesn't seems to be installed or isn't working, falling back to java\", java_ver[0], \". You might experience reduced performance. Minecraft 1.17 and above might fail to launch.\")\n",
7171
"\n",
7272
"# Mount Google Drive\n",
7373
"from google.colab import drive\n",
@@ -160,6 +160,7 @@
160160
"source": [
161161
"# Replace \"1.17\" with your desired server version.\n",
162162
"# Available versions:\n",
163+
"# - 1.18 <!> Paper still in experimental\n",
163164
"# - 1.17.1\n",
164165
"# - 1.17\n",
165166
"# - 1.16.4\n",
@@ -173,11 +174,15 @@
173174
"# - 1.9.4\n",
174175
"# - 1.8.8\n",
175176
"# Newer versions might work too, however this isn't guaranteed.\n",
176-
"version = '1.17'\n",
177+
"version = '1.17.1'\n",
177178
"\n",
178179
"#Chose server type. Currently available versions: fabric, paper\n",
179180
"server_type = 'paper'\n",
180181
"\n",
182+
"# Print experimental build warning\n",
183+
"if version == '1.18' and server_type == 'paper':\n",
184+
" print(\"<!> Paper 1.18 builds are still experimental. Make regular Backups!\")\n",
185+
"\n",
181186
"from google.colab import drive\n",
182187
"import requests\n",
183188
"import json\n",

0 commit comments

Comments
 (0)