跳到正文

Server Playtime Manager

作者:KrazyMiner001

A mod to help manage daily playtime on a server to prevent burnout.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Server Playtime Manager

A mod to manage daily playtime on a server to help avoid people advancing far beyond others and to avoid burnout.

Config

timezone

Specifies which timezone to define midnight from. If players are split accross multiple timezones UTC should be fine as it will still be a 24 hour period.

maxTime

The maximum time in ticks a player can play on the server alone for. At normal tickrates a tick is 50ms.

nonTrackingPeriods

Times when everyone can play together without playtime being tracked.

Example Config

{
  timezone: "Z", // Z means UTC
  maxTime: "72000", // 72000 ticks - 1 hour
  nonTrackingPeriods [
    {
      startTime: "06:00+01:00", // Time is specified as time with offset in accordance with ISO 8601
      endTime: "08:00+01:00"
    } // Creates a non tracking period between 6am UTC+1 and 8am UTC+1
  ]
}

Commands

The mod has some commands to help with settings and managing playtime

playerplaytime query – Must be run by a player. Returns that player’s playtime today in seconds (assuming 50 mspt). Doesn’t require any permission level. \
\
playerplaytime query [Player] – Returns specified player’s playtime today in seconds. Requires permission level 2. \
\
playerplaytime set [Player] [Time] – Sets the specified player’s playtime today to the time specified (in ticks). Requires permission level 3. \
\
playerplaytime config reload – Reloads the config file if any changes have been made. Requires permission level 2. \
\
playerplaytime set maxTime [Time] – Sets the maxTime in the config to the number specified. Requires permission level 2. \
\
playerplaytime get maxTime – Returns the maxTime from the config. Requires permission level 2.

常见问题

Server Playtime Manager 支持哪些 Minecraft 版本?

Server Playtime Manager 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Server Playtime Manager 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

KrazyMiner001 的其他作品

查看全部 →