HomeJavaModsPlayTimeGroup [LuckPerms]
PlayTimeGroup [LuckPerms]
ModsJava

PlayTimeGroup [LuckPerms]

by Jorget · on Modrinth

⬇ Download on Modrinth

Functionality

The plugin tracks players' playtime and automatically assigns them roles via the LuckPerms permissions system based on accumulated time. Roles are configured in the configuration file.

Key features:

Commands:

Permissions:

Configuration

config.yml

This file contains role settings. Each role has a name and a required time in the format:

Example configuration:

roles:
  - role: "novice"
    time: "1m"
  - role: "experienced" 
    time: "10h"
  - role: "veteran"
    time: "50h"

How the plugin works

  1. When enabled: Loads the configuration, initializes the 'playtime.yml' file to store playtime data, and registers events and the command.
  2. Player tracking: Stores the login time upon login, and calculates and stores the session time upon logout. 3. Role Checking: Periodically (every 5 minutes) and upon login, it checks the total playtime of each player and assigns roles via the LuckPerms API.
  3. Data Saving: Playtime is saved in playtime.yml in milliseconds by player UUID.

The plugin requires LuckPerms to be installed to work with roles and works on Paper/Spigot servers with API 1.21.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more