跳到正文

Super Simple AFK

作者:Lilspartan

A simple datapack to manage AFK players

收藏

截图

介绍

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

This datapack adds a simple afk mechanic, useful for surival servers or other situations where you might want to know who is or isn’t around.

Usage

all players have access to the /trigger afk command which will set their status to afk.

Server operators can also change the amount of time until a player is automatically set as afk using /scoreboard players set $time simple_afk.time_until_afk <time in ticks> (defaults to 6000 ticks, which is 5 minutes. There are 20 seconds in a tick)

Developing

If you’d like to use a player’s AFK status in another datapack, simply check for one of the following:

  • Players on the simple_afk.afk_players team
  • Players with the simple_afk.afk tag

Custom Commands

if you are using the mod Melius Commands, here is a config file to create a /afk command

{
    "id": "afk",
    "executes": [
        {
            "command": "function simple_afk:messages/go_afk",
            "as_console": false,
            "op_level": 4
        }
    ]
}

常见问题

Super Simple AFK 支持哪些 Minecraft 版本?

Super Simple AFK 支持 Minecraft Java 版 1.21.5。下载时注意选择和你游戏版本一致的文件。

Super Simple AFK 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分