From 674f07cc835780f14503a2822fd0a6a215222667 Mon Sep 17 00:00:00 2001
From: Thecoder001 <25097841+thecoder-001@users.noreply.github.com>
Date: Fri, 7 Oct 2022 00:21:51 +0530
Subject: [PATCH] Added initial support for playit.gg

---
 MineColab.ipynb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/MineColab.ipynb b/MineColab.ipynb
index 5fa8f2d..674226a 100644
--- a/MineColab.ipynb
+++ b/MineColab.ipynb
@@ -84,7 +84,7 @@
         "memory_allocation = \"-Xmx6144M -Xms6144M\"\n",
         "\n",
         "# Chose the tunnle service you want to use\n",
-        "# Available options: ngrok, argo\n",
+        "# Available options: ngrok, argo, playit\n",
         "tunnel_service = \"argo\"\n",
         "print(\"Procedding to use\", tunnel_service)\n",
         "\n",
@@ -108,6 +108,13 @@
         "  print('Starting server...')\n",
         "  !java $memory_allocation $server_flags -jar $jar_name nogui\n",
         "\n",
+        "elif tunnel_service == \"playit\":\n",
+        "  ! curl -SsL https://playit-cloud.github.io/ppa/key.gpg | sudo apt-key add -\n",
+        "  ! sudo curl -SsL -o /etc/apt/sources.list.d/playit-cloud.list https://playit-cloud.github.io/ppa/playit-cloud.list\n",
+        "  ! sudo apt update &>/dev/null && sudo apt install playit &>/dev/null && echo \"Playit.gg installed\" || echo \"Failed to install playit\"\n",
+        "  print('Starting server...')\n",
+        "  ! playit & java $memory_allocation $server_flags -jar $jar_name nogui\n",
+        "\n",
         "else:\n",
         "  # Download & make argo executable\n",
         "  !wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64\n",