Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App
Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
SpaceServe Playtime

SpaceServe Playtime

A library for all things playtime

237
2
Library
AboutChangelogVersions

SpaceServe Playtime API

An easy to use api for all your playtime needs. Playtime Tracker is a simple implementation of this library that tracks playtime, has simple leaderboards, and more.

  • Track Playtime
    • All playtime
    • Improved afk detection
    • Afk time
    • Non-afk playtime
    • The above, but dimension specific
  • Playtime Triggers and Events
    • Playtime event on afk and on active
    • All playtime types as advancement triggers
    • All playtime types as scoreboard objectives
  • Simple playtime to Duration conversion

Add to your project

repositories {
    maven {
        name = "Modrinth"
        url = uri("https://api.modrinth.com/maven")
    }
}

dependencies {
    // Playtime
    modImplementation("maven.modrinth:playtime:0.1.0-rc1")
    include("maven.modrinth:playtime:0.1.0-rc1")
}

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.17

Platforms

Fabric

Supported environments

Singleplayer

Links

Report issues View source Visit wiki Join Discord server

Creators

SpaceClouds42
SpaceClouds42 Owner

Details

Licensed LGPL-3.0-only
Published 3 years ago
Updated 3 years ago

Modrinth is open source.

new-project-page@ac78952

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.