跳到正文

Anti-Combatlog (AntiLogout)

作者:nuss

Prevent combat logging & provide /afk command for farming!

收藏

介绍

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

AntiLogout

Stop combat logging on your server!
Prevents players from logging out during combat by keeping them in the game until the fight is over.


Features

  • Combat logout protection: Players who log out during combat remain as a dummy in the world until combat ends.
  • AFK command system: /afk command: lets players logout with the account still online, with optional time limits.
  • Easy in-game configuration: Change settings and reload config without restarting the server.
  • Permission system: Fine-grained control over who can use commands and features.

Commands

Player Commands

  • /afk [time] [player]
  • [time] — How long to stay AFK (in seconds, -1 for unlimited)
  • [player] — Set another player AFK (requires permission)

Admin Commands

  • /antilogout get <option> — View current settings
  • /antilogout set <option> <value> — Change settings
  • /antilogout reload — Reload configuration
  • /antilogout status — Show mod status

Examples

  • /afk time 300 — Go AFK for 5 minutes
  • /afk time -1 — Go AFK until you reconnect
  • /antilogout set combatTimeout 30 — Set combat timeout to 30 seconds

About

Note: This is a fork of the original AntiLogout (CombatLog & AFK) by samolego, updated for Minecraft 1.21.7 with code cleanup and improvements.


Have fun!

常见问题

Anti-Combatlog (AntiLogout) 支持哪些 Minecraft 版本?

Anti-Combatlog (AntiLogout) 支持 Minecraft Java 版 1.21.7–1.21.8,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Anti-Combatlog (AntiLogout) 怎么安装?

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

评论

登录后评论和评分