Something went wrong. Try again.
Track players on a Minecraft server through their Dynmap [tangled.org mirror]
Something went wrong. Try again.
Files
- Rust 72%
- Svelte 16%
- TypeScript 8%
- Sass 3%
- HTML <1%
- 1 more language <1%
README.md
v2 is deprecated. See StatusTracker 3 #
StatusTracker 2 #
Track players on a Minecraft server through their Dynmap
Made by 7d for the Minecart Rapid Transit server
Usage #
-
Create a MongoDB cluster and get a URI
-
Install the server with cargo:
cargo install --git https://github.com/iiiii7d/statustracker2.git --tag v{version no.}(for latest commit, omit --tag flag) -
Create a toml file for the configuration with the following contents:
# Find a JSON file hosted by dynmap that starts with "currentcount" as a key dynmap_link = "https://your.server/path.to.json" # A name of an environment variable that contains the URI of your MongoDB cluster, or the URI itself mongodb_uri = "MONGO" # Statustracker 2 uses only one database in your cluster database_name = "server" # Optional, `true` if the server is hosted over HTTP (not S). This will affect the redirect hosted_over_http = false # Optional, a mapping of category name to player UUIDs, these would show up as separate lines in the graph on the client. # Don't use `all` as a category name. [categories] staff = ["(uuid1)", "(uuid2)"] -
Run
statustracker-server <config_file_name> -
The server uses Rocket, additional configuration for the server framework itself goes in Rocket.toml (if in production, you may need to set
address = "0.0.0.0") -
Enter the URL of the site that the server is hosted on, and it should redirect to the client for StatusTracker 2
Usage (Docker) #
- Create a MongoDB cluster and get a URI
- Pull the image with
docker pull ghcr.io/iiiii7d/statustracker2:v<version> - Create a toml file for the configuration with the contents above. Save it as
statustracker.tomlin a new folder. - Create
Rocket.tomllike the above, if applicable. Save it in the same folder. - Run the image with
docker run -dp <host_port>:8000 -v <host_config_path>:/cfg ghcr.io/iiiii7d/statustracker2:v<version><host_port>is the host's port<host_config_path>is the path of the folder containingstatustracker.toml(andRocket.toml)- If there are environment variables, put them in a
.env, then add--env ./.envbeforeghcr.io
- Enter the URL of the site that the server is hosted on, and it should redirect to the client for StatusTracker 2