promotional bannermobile promotional banner
premium banner
A simple AFK status plugin for Hytale servers.

Description

Join the Discord!

Epic Discord Server with updates

Snipr AFKPlugin

A simple AFK (Away From Keyboard) status plugin for Hytale servers.

Check us out

Snipr

Features

  • /afk command - Toggle your AFK status
  • Automatic detection - Returns you from AFK when you send a chat message
  • [AFK] prefix - Shows [AFK] before your name in chat messages
  • Broadcast announcements - Announces to all players when you go AFK or return

Movement Detection

Note: The Hytale plugin API currently doesn't expose a PlayerMoveEvent, so the plugin can only detect activity when you chat. Movement-based AFK removal is not currently possible with the available API.

Installation

  1. Place AFKPlugin-1.0.0.jar in your server's mods/ folder
  2. Restart your server

Usage

Type /afk to mark yourself as away. Everyone will see: "YourName is now afk!"

Your chat messages will show the [AFK] prefix until you send a message, which automatically removes your AFK status and announces: "⚡ YourName is no longer AFK"

⚠️ Important: Permissions Setup

By default, Hytale prevents non-Operators from using slash commands. For regular players to use this plugin, you must add the permission node to your server's permissions.json file.

Note: You must STOP your server before editing this file, or it may reset your changes.

Configuration

Locate permissions.json in your server root and add the permission string to the default group list.

Correct Syntax: Ensure you use a List [], not an Object {}.

{
  "groups": {
    "Default": [],
    "OP": [
      "*"
    ],
    "default": [
      "snipr.afkplugin.*",
    ],
    "Adventure": [
      "snipr.afkplugin.*",
    ]
  }

Author

Created by Snipr

Looking for quality hosting?

Bisect Hosting - use code tracks