▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/Unplugged AFK
Unplugged AFK

Unplugged AFK

Stop burning power to stand still. A bot takes your place while you're AFK, so you can close the game and switch your PC off.

Оцените первым
100
1

A feature-incomplete Paper port of Unplugged AFK, the Fabric mod by Sakura Ryoko, published under the LGPL3-or-later license.

One command disconnects your client and leaves an unplugged player standing where you were, holding your spot at a farm until the time you declared runs out.

IMPORTANT: The unplugged player is an interactable, killable version of you. If it dies, its inventory drops as normal and you get the death screen on rejoining.

WARNING: The unplugged player joins without the login step permission plugins hook into. LuckPerms is supported directly, so with it installed the unplugged player resolves permissions exactly as you do. Every other permission plugin needs support added for it specifically, and until then the unplugged player falls back to operator status and plugin defaults alone, so an AFK-kick bypass granted through a group will not apply to it.

Features

  • Go green: turn off your computer and leave your unplugged player to AFK for you
  • Inventory carries over: the unplugged player starts with your inventory, and hands back whatever it collected
  • Configurable limits: operators set the maximum duration and a global cap on how many unplugged players can exist
  • Admin control: commands to inspect who is unplugged, and to debug the plugin's behaviour
  • Placeholder aware: with PlaceholderAPI or MiniPlaceholders installed, scoreboards, tab lists and chat plugins can show who is unplugged and for how long
  • CMI aware: with CMI installed, the unplugged player is marked AFK as soon as it appears and is never AFK-kicked
  • Proxy aware: behind Velocity, unplugging disconnects you from the whole network, returning puts you back on the server your unplugged player is on, and the server list still counts it

Planned

  • Bypass max duration: a permission letting staff or VIPs unplug for longer than the configured maximum
  • Bypass cap: a permission letting staff or VIPs unplug even once the cap is reached
  • Configurable messages: move the plugin's chat messages into the config
  • Historical data: persist records to disk so staff can review how players have used the plugin
  • Re-spawn unplugged players on server reboot: bring them back automatically when a backend restarts
  • More admin commands: unplug an online player on their behalf, unplug an offline player, and similar

Requirements

Both halves reach into their host's own internals, Minecraft's on the backend and Velocity's on the proxy. Each JAR is built against one Minecraft version or one Velocity line and named for it, so give each host the JAR that matches. Anything outside this table is best-effort and logged on startup.

JARRuns onJava
unplugged-afk-1.21.11-<version>.jarPaper 1.21.11, or a fork21 or newer
unplugged-afk-26.1.2-<version>.jarPaper 26.1.2, or a fork25 or newer
unplugged-afk-26.2-<version>.jarPaper 26.2, or a fork25 or newer
unplugged-afk-velocity-3.5.1-<version>.jarVelocity 3.521 or newer
unplugged-afk-velocity-4.0.0-<version>.jarVelocity 425 or newer

Installation

Drop the backend JAR for your server's Minecraft version into every backend's plugins/ directory. Behind a Velocity proxy, also drop the proxy JAR for your Velocity line into the proxy's plugins/ directory. Install both from the same release; mixed versions are not supported. Restart each server.

Commands

CommandDescriptionPermission
/unplug <duration> <reason>Disconnects you and leaves an unplugged player in your place for duration minutesunplugged-afk.unplug
/unplugged info <player>Shows the unplugged details for playerunplugged-afk.admin.info
/unplugged listLists every unplugged player, and how many slots of the cap are in useunplugged-afk.admin.list
/unplugged debug spawn-fake <duration> [reason]Spawns a throwaway unplugged player with a random UUID and name. Requires debug: trueunplugged-afk.admin.debug

Configuration

Backend

plugins/unplugged-afk/config.yml, on every backend.

KeyDescriptionDefaultMinimumMaximum
versionThe file's shape. The plugin upgrades it, do not edit1
debugEnables debug functionality. See Debug Modefalse
maxUnpluggedPlayersHow many unplugged players may exist at the same time161
maxDurationMinsThe longest a player may unplug for, in minutes4801
link.hostThe proxy's address127.0.0.1
link.portThe port the proxy listens on25580165535
link.secretCopied from the proxy's config
link.serverNameThis backend's name, exactly as velocity.toml spells it
messages.labelWhat %unplugged-afk_label% shows for an unplugged player🔌

Out-of-range values are clamped back to their default, with a warning in the console.

Behind a proxy, link.secret and link.serverName have no usable default, and the plugin refuses to enable until both are set.

Proxy

plugins/unplugged-afk/config.yml, on the proxy.

KeyDescriptionDefaultMinimumMaximum
versionThe file's shape. The plugin upgrades it, do not edit1
debugLogs link, presence and relay activity to the consolefalse
link.hostThe address to listen on. Widen it for backends on other machines127.0.0.1
link.portThe port to listen on25580165535
link.secretGenerated on first start. Copy it into every backend
messages.labelWhat <unplugged-afk_label> shows for an unplugged player🔌

Out-of-range values are clamped back to their default, with a warning in the console.

WARNING: The link port is an internal channel between the proxy and its backends, never a player-facing one. If you widen link.host past 127.0.0.1, restrict the port to your backends at the firewall. An open one gets found by server scanners.

Permissions

NodeGrantsDefault
unplugged-afk.unplug/unplugEveryone
unplugged-afk.adminEvery admin node belowOperators
unplugged-afk.admin.info/unplugged infoOperators
unplugged-afk.admin.list/unplugged listOperators
unplugged-afk.admin.debug/unplugged debug and its subcommandsOperators

Placeholders

PlaceholderAPI

With PlaceholderAPI installed, the backend plugin registers an expansion under the identifier unplugged-afk.

PlaceholderGives
%unplugged-afk_is_unplugged%true or false
%unplugged-afk_duration_mins%The window the player asked for, in minutes
%unplugged-afk_reason%The reason given to /unplug
%unplugged-afk_started%How long ago they unplugged, such as 2 hour(s) 5 minute(s)
%unplugged-afk_expires%How long is left, in the same form
%unplugged-afk_remaining_mins%How long is left, as a plain number of minutes
%unplugged-afk_is_fake%true for an unplugged player from /unplugged debug spawn-fake
%unplugged-afk_label%The configured messages.label, 🔌 by default
%unplugged-afk_count%How many this server holds, matching the /unplugged list total

Every placeholder except %unplugged-afk_count% describes one player and renders empty when that player is not unplugged. %unplugged-afk_is_unplugged% renders false instead.

MiniPlaceholders

With MiniPlaceholders installed, both JARs register an expansion under the same name. MiniMessage spells the tags <unplugged-afk_is_unplugged> rather than %unplugged-afk_is_unplugged%.

Installed on a backend, the tags answer for that server. Installed on the proxy, they answer for the whole network. Two of them differ between the two sides:

TagOn a backendOn the proxy
<unplugged-afk_count>How many this server holdsHow many the network holds
<unplugged-afk_server>Not registeredThe server the unplugged player is on

The rest carry the meanings listed above and render identically on either side.

Proxy Support

Velocity

Behind Velocity, /unplug needs to disconnect you from the whole network rather than from the single backend you are on, and reconnecting needs to send you back to the backend holding your unplugged player. For this to work properly, the companion JAR is required on the proxy.

Supported Velocity versions are listed under Requirements. Other versions are best-effort, and the companion logs an error on startup when it cannot resolve the internals it needs.

Debug Mode

Everything here is gated behind the debug configuration flag, which is off by default.

  • /unplugged debug spawn-fake becomes available. It spawns a throwaway unplugged player with a random UUID and name. Behind a proxy it needs the proxy to be reachable, just like /unplug.
  • Every /unplug writes a text file to plugins/unplugged-afk/dumps/ holding the session details and a full snapshot of the player, inventory and ender chest included.

The proxy has its own debug flag, set independently of the backends'. It gates noisy console logging useful for debugging.

Acknowledgements

Huge thanks to Sakura Ryoko for Unplugged AFK, the mod this ports. This plugin would not exist without their work.

Партнёрский материал

Сервер для плагина Unplugged AFK - как у профи

Плагин Unplugged AFK создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином Unplugged AFK для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.2.x26.1.x1.21.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Создатели

Детали

Лицензия:
Опубликован:2 месяца назад
Обновлён:1 месяц назад
Главная