Socket
Book a DemoInstallSign in
Socket

@igalaxy/polymc-playtime

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@igalaxy/polymc-playtime

Export your PolyMC playtime to a web server of your choice

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

⏱️ polymc-playtime

Export your PolyMC playtime to a web server of your choice

Setup

  • Install the package
npm install -g @igalaxy/polymc-playtime
OR
yarn global add @igalaxy/polymc-playtime
  • Find the location of the polymc-playtime executable by doing where polymc-playtime on Windows or which polymc-playtime on macOS/Linux
  • Find the location of the Node.js executable by doing where node on Windows or which node on macOS/Linux
  • Open Settings > Custom Commands in PolyMC
  • Set the Post-exit command to one of the following:
    • <node path> <polymc-playtime path> --path="$INST_DIR" --method=lanyard --lanyard-id="your-discord-user-id" --auth="your-lanyard-token"
    • <node path> <polymc-playtime path> --path="$INST_DIR" --method=endpoint --endpoint="https://your.custom/endpoint" --auth="your-auth-secret"

If using the endpoint method, the auth secret can be anything of your choice. It is simply used so you can authenticate the request serverside.

With the Lanyard method, the playtime is stored in Lanyard KV under the key polymc_playtime.

A custom key for Lanyard KV can be provided using the lanyard-key parameter. (e.g. if you want to use minecraft_playtime as the key instead of polymc_playtime, pass --lanyard-key="minecraft_playtime")

Apologies for the janky setup, for some reason PolyMC custom commands don't respect the PATH env variable, so exact executable locations are needed.

Example Usage

FAQs

Package last updated on 08 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.