-
Notifications
You must be signed in to change notification settings - Fork 59
Basic Information (IMPORTANT)
N-aksif-N edited this page Apr 14, 2024
·
13 revisions
Run Minecraft Server on Google Colab
Today, I will tell you the basis information for developing the main functions. Let's deep down, right now!
Libraries | Commands | Uses | X | Libraries | Commands | Uses |
---|---|---|---|---|---|---|
os | environ() | Setting java environment | X | jproperties | Properties() | Read server.properties files |
os.path | exists() | Checking exsisting folder | X | rich | print() | print color texts |
requests | get() | HTML Parse | X | google.colab | drive() | Mounting google drive |
time | sleep() | Wait for done (Commands) | X | pyngrok | ngrok() | Ngrok connecting |
json | load() | Transform to dict type | X | pyngrok | conf() | Ngrok configuring |
json | dump() | Dumping dict values to .txt files | X | bs4 | BeautifulSoup4() | HTML Parse |
- drive_path : Path to your drive files.
- SERVERCONFIG : Path to your serverconfig.txt file.
- COLABCONFIG : Function but used for getting the path to colabconfig.txt file.
- JAR_LIST_RUN : Function, return dict including jar file name for each software.
- LOG:
- Purpose: Print color texts
- Mechanism:
- GET:
- Purpose: HTML parse.
- Mechanism:
- DOWNLOAD_FILE:
- Purpose: Download jar files.
- Mechanism:
-
COLABCONFIG_LOAD:
- Purpose: Load colabconfig content
- Mechanism: In-process
-
SERVER_IN_USE:
- Purpose: Get servers that are in use.
- Mechanism: In-process
- Purpose: Install Java (Java 8 for versions < 1.17 except from 1.16.5 and Java 17 for versions > 1.17)
- Mechanism: In-process
-- Inprocess