AFK 挂机机器 = 玩家用于规避 AFK(离线)检测的方法,以防止被踢出服务器或获取某些服务器为在线时长提供的奖励。这些“机器”通过提供无人看管但持续不断的移动来欺骗 AFK 检测系统。
AFK 挂机机器检测
该插件会检测以下类型的 AFK 挂机机器:
- 矿车
- 循环流动的水流
- 下落水流
- 连续跳跃
- 活塞动力跳跃
- 活塞推进器
- 活塞/门随机器
- 创造模式无限垂直飞行
- 连续钓鱼
- 鞍具猪(带或不带胡萝卜竿)
- 牵引绳拴住的鞍具猪
- 马
- 箭矢机器
- 连续击打方块
- 藤蔓农场
- 栅栏上方的水流
AfkTerminator 能够检测这些机器的使用,并为管理员提供多种处理违规玩家的选择。
惩罚措施
惩罚选项包括:
- 无操作(仅报告)
- LAVA - 用流动岩浆覆盖机器 [视频]
- TNT - 使用 TNT 摧毁机器及其周围区域 [视频]
- KICK - 踢出玩家
- KILL - 击杀玩家
- COMMAND - 执行任何由管理员配置的命令 或多个命令。默认设置:'ban [player]'
- SPAWNMOB - 在玩家位置生成一个或多个指定的生物
关于使用 TNT 惩罚选项的一个警告。正如您在视频中看到的那样,这可能会造成极大的破坏。我担心有些玩家可能会在 PVP 或 Factions 服务器中利用这一点,仅仅为了对周围的建筑或基地造成破坏而建造 AFK 挂机机器。请谨慎使用。
当 penalty=COMMAND 时,可以执行多个命令,这在 config.yml 中通过用 "/n" 分隔命令来定义。例如:
(来自 config.yml)
#
# 如果惩罚设置为 "COMMAND",这就是要执行的命令(或多个命令)。
# "[player]" 将在执行时被替换为玩家的名称
# 可以通过用 "/n" 分隔命令来执行多个命令。所有命令必须在此文件中位于同一行。
commandPenalty: 'ban[player]/nuntimeremove[player]'
管理员/版主关于 AFK 挂机机器的通知
当怀疑并最终检测到 AFK 挂机机器时,管理员可以选择通过控制台消息、接收 MC 邮件以及在日志文件中记录信息来获得通知。
日志文件
有关已检测到的 AFK 挂机机器的信息将保存在 /plugins/afkTerminator/AfkTerminator.log 文件中。该插件不提供对此文件的管理功能,因此它会不断增长。因此,服务器所有者可能希望不时删除此文件,当其中包含的数据不再有价值时。
游戏内消息
拥有权限 "afkTerminator.notify" 的任何玩家,如果在检测发生时处于在线状态,都将收到一条发送给他们游戏客户端的消息。此消息的语言和内容是可配置的,可以在 afkTerminator/config.yml 中找到。
Minecraft 邮件
拥有权限 "afkTerminator.mailReceive" 的任何玩家将收到通过服务器支持的任何游戏内邮件系统发送的邮件。收到的消息与游戏内消息(如上所述)相同,因此也是可配置的。
AfkTerminator 通过使用 plugis/afkterminator 文件夹中的 'mail_list.yml' 文件来跟踪具有 'mailReceive' 权限字符串的玩家。每次玩家加入服务器并被发现拥有该权限时,他们将被添加到该文件中,并附带登录时间。
每次 afkTerminator 插件重启时(例如服务器重置),插件都会审查该文件,并将任何拥有权限但已超过可配置天数未登录服务器的玩家从邮件列表中移除。这将防止列表随着管理员/版主的更替而膨胀,并防止系统向不活跃的玩家发送消息。如果一名玩家加入,曾经拥有该权限但现在不再拥有该权限,他们也会在同一时间从列表中移除。如果一名玩家从列表中移除但仍拥有权限,并且后来再次加入服务器,他们将被重新添加到列表中。
用于向玩家发送邮件的系统命令也是可配置的,位于 config.yml 中。默认配置与 Essentials Mail 兼容。
自动登录阻止器
该插件还将防止试图通过简单地自动重新登录服务器来“绕过” AFK 踢出的客户端作弊程序。此功能要求玩家在因任何原因离开后,等待一段配置好的时间才能重新登录服务器。如果有多次尝试,每次登录的最小等待时间都会增加,如果玩家超过了配置的最大失败尝试次数,afkTerminator 可以采取配置的操作(如 'ban')。
如果玩家拥有权限 "afkTerminator.loginDelayExcluded",他们将不受此检查的影响。
权限
afkTerminator.excluded
当玩家拥有 "afkTerminator.excluded" 权限字符串时,他们将不会受到 afkTerminator 的惩罚。他们对 AFK 机器的使用仍会记录在日志和控制台中,以便保留记录,但当检测到使用 AFK 机器时,他们不会被惩罚,而是被重置为“无 AFK 机器状态”。
afkTerminator.loginDelayExculded
当玩家拥有此权限时,他们将不受离开服务器后重新登录的最小时间限制。
afkTerminator.admin
当玩家拥有此权限时,他们将能够执行命令 "afkt reload"
afkTerminator.notify
当玩家拥有此权限时,如果检测到有玩家使用 AFK 机器,在线玩家将收到一条游戏内消息通知。
afkTerminator.mailReceive
当玩家拥有此权限时,如果检测到有玩家使用 AFK 机器,他们将收到一封邮件通知。
Vault.jar
如果您想使用 afkTerminator 权限字符串,则必须在插件目录中安装 Vault 插件。
安装
- 将 AfkTerminator.jar 放入您的插件文件夹
- 如果使用 afkTerminator 权限字符串,请将可选的 Vault.jar 放入您的插件文件夹。
- 重启服务器 / 重载插件
- 根据需要编辑 plugins/AfkTerminator/config.yml
- 无需编辑,因为已设置默认值
- 请参阅生成文件中的配置设置说明或此处
4. 如果修改了 config.yml,请重启服务器 / 重载插件
就是这样!
AFKTerminator 可以被其他插件开发者集成!
AFKTerminator 提供了 API,以便其他与 AFK 相关的插件可以利用其检测功能,并将此信息作为该插件 AFK 算法的一部分。API 说明请见此处。
EDGE 的备注:AFKTerminator 最初是为与 OnTime 插件配合使用而构建的,但我认为这种能力的需求更大,因此我将其独立出来并使其功能更强大。
更新日志
如需完整的更新日志,请参见此处
V3.0.8
基于 Spigot/Bukkit V1.9; Java8; Vault 1.5.6 编译/测试
功能增强
- 添加了“栅栏上方的水”AFK 机器检测(工单 #67)
修复
- 修复了在投射物机器检测中出现的 NPE(空指针异常)(无工单)
V3.0.7
基于 Spigot/Bukkit V1.9; Java8; Vault 1.5.6 编译/测试
修复
- 再次修复了命令惩罚中新行 "/n" 令牌不起作用的问题(无工单)
- 修复了输出中 '[VEHICLE]' 变量的问题,即之前的数据未清除(无工单)
V3.0.6
基于 Spigot/Bukkit V1.9; Java8; Vault 1.5.6 编译/测试
修复
- 修复了(这次是真的!)启用时离线玩家未收到邮件的问题(工单 #58/#61)
- 修复了当玩家处于 AFK 状态时,怪物箭矢攻击可能被错误识别为“箭矢伤害”AFK 机器的问题。(无工单)
- 改进了关于在命令惩罚中使用 " /n " 指定多行的正确语法的注释(无工单)
功能增强
- 在面向管理员的 AFK 机器检测消息的输出变量列表中添加了 '[vehicle]'。这将指定所使用的载具类型。(工单 #62)
V3.0.5
基于 Spigot/Bukkit V1.9; Java8; Vault 1.5.6 编译/测试
修复
- 修复了启用时离线玩家未收到邮件的问题(工单 #58)
- 修复了某些基于水的 AFK 机器被怀疑但从未被检测到的问题(由用户报告,但未提交工单)
V3.0.4
基于 Spigot/Bukkit V1.9; Java8; Vault 1.5.6 编译/测试
- 使用 Spigot 1.9 API、更新的 Java8 和最新版的 Vault 重新编译了 v3.0.2
修复
- 修复了尝试发送邮件通知时的 NPE 问题(工单 #58)
- 修复了基于“交互”的 AFK 规避方法未被检测到的问题(无工单)
功能增强
V3.0.3
基于 Spigot/Bukkit V1.9; Java8; Vault 1.5.6 编译/测试
- 使用 Spigot 1.9 API、更新的 Java8 和最新版的 Vault 重新编译了 v3.0.2
V3.0.2
基于 Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2 编译/测试
修复
- 修复了当服务器未安装可选插件 Vault 时看到的控制台错误(工单 #45)
V3.0.1
基于 Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2 编译/测试
修复
- 修复了当 config.yml 中未将 "worlds:" 设置为默认值 '- all' 时自动配置升级出现的问题。(工单 #49)
V3.0.0
基于 Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2 编译/测试
功能增强
- 使插件兼容 Spigot/Bukkit v1.8.1 并使用 UUID
- 添加了在检测到 AFK 机器时通过邮件通知管理员/版主的功能。(工单 #47)
- 使在检测到 AFK 机器时显示和发送邮件中的文本可配置(工单 #47)
修复
- 修复了“交互”检测启用/禁用功能不生效的问题。(工单 #48)
新增配置项
- mailNotifyEnable:设置为 true 时,当检测到挂机机器(AFK Machines)后,拥有相应权限的玩家将收到邮件通知。
- afkDetectMsg:可自定义的游戏内显示消息;在检测到挂机机器(AFK Machines)时,该消息将展示给玩家并发送给拥有相应权限的玩家。
- mailCommand:可自定义的邮件发送命令;当检测到挂机机器(AFK Machines)时执行此命令以发送邮件。
- mailListRemovalTime:允许接收邮件的玩家在多少天未在线后,将被暂时从邮件列表中移除。
新增指令
无
新增权限
afkTerminator.mailReceive :如果玩家拥有此权限,则在检测到挂机机器(AFK Machines)时会收到邮件消息。
AFK Machine = Are methods players use to defeat AFK detection to prevent being kicked or to gain rewards offered by some servers for time played. These "machines" fool the AFK detection by providing unattended, continual movement.
AFK Machine Detection
The plugin detects these types of AFK Machines:
- Mine Cart
- Flowing Water (circular)
- Flowing Water (falling)
- Continual jumping
- Piston Powered Jumping
- Piston Pushers
- Piston/Door Randomizer
- Creative Mode Fly Straight Up Forever
- Continual Fishing
- Saddled Pig ( with or without Carrot Stick )
- Saddled Pig with lead
- Horse
- Arrow Machine
- Continual Block Strike
- Vine Farm
- Water over Fence
AfkTerminator is able to detect the use of these machines and provides operators with several options in dealing with the offending players.
Penalties/Punishment
Penalties include:
- NOTHING (report only)
- LAVA - Cover the machine in flowing lava [VIDEO]
- TNT - Destroy the machine and surrounding area using TNT [VIDEO]
- KICK - Kick the player
- KILL - Kill the player
- COMMAND - Execute any operator configured command or commands. Default: 'ban [player]'
- SPAWNMOB - Spawn one or many mobs specified on player's location
One word of caution about using the TNT penalty option. As you can see in the video, this can be very destructive. I'm afraid that some players may take advantage of this in PVP or Factions servers, building an AFK machine simply for the destruction it can cause to surrounding buildings or bases. USE WITH CAUTION.
When penalty=COMMAND, multiple commands can be executed, and this is defined by separating commands in the config.yml with " /n ". For example:
(from config.yml)
#
# If the punishment setting is "COMMAND", this is that command (or commands).
# "[player]" will be replaced with't players name on execution
# Multiple commands can be executed by separating commands with " /n ". All commands must be on a single line in this file.
commandPenalty: 'ban[player]/nontimeremove[player]'
Admin/Moderator Notification of AFK Machines
When an AFK Machine is suspected and eventually detected, administrators can elect to be notified via a console message, receive MC mail, and/or logging of information in a log file.
Logfile
Information about detected AFK Machines will be found in the file /plugins/afkTerminator/AfkTerminator.log. There is no management of this file provided by the plugin, so it will grow continually. So server owners may want to delete this now and again, when the data contained has no more value.
In-game Message
Any player with the permission "afkTerminator.notify" will receive a message to their game client if they are online at the time of the detection. The language and content of this message is configurable and can be found in the afkTerminator/config.yml.
MineCraft Mail
Any player with the permission "afkTerminator.mailReceive" will receive an mail through any in-game mail system supported by the server. The message received is the same as seen in the in-game message (as described above), and hence is configurable.
AfkTerminator keeps track of the players with 'mailReceive' permission string through the use of a 'mail_list.yml' file found in the plugis/afkterminator folder. Each time a player joins the server and is found to have the permission, they will be added to this file along with the the time of the login.
Each time afkTerminator plugin is restarted (e.g. server reset), the file will be reviewed by the plugin an any player that has permission, but had not logged into the server for a configurable number of days will be removed from the mail list. This will keep the list from growing as admin/moderators turn over, and keep the system from sending messages to inactive players. If a player joins, that had the permission, but they no longer have the permission, they also will be removed from the list at that time. If a player is removed from list, still has permission, and later again joins the server, they will be re-added to the list.
The system command used to issue the mail to the players is also configurable, and is found in the config.yml. The default configuration is compatible with Essentials Mail.
Auto Login Blocker
The plugin will also prevent client hacks which try to "get around" an AFK kick by simply auto logging back into the server. This function will require a player to wait a configured amount of time before logging back into the sever after leaving for any reason. If there are multiple attempts the minimum time for a login is raised each time, and if the player exceeds a configured maximum number of failed attempts, an configured action (such as 'ban') can be taken by the afkTerminator.
If a player has the permission "afkTerminator.loginDelayExcluded", they will not be subject to this check.
Please see the pages for configuration, etc.
Permission(s)
afkTerminator.excluded
When a player has the "afkTerminator.excluded" permission string, they will not be subject to the afkTerminator punishment. Their use of afkMachines will still be recorded in the log and on console in order that there is a record, but instead of being punished, they will be set back to "no AFK Machine state" when an AFK Machine use is detected.
afkTerminator.loginDelayExculded
When a player has this permission they will not be subject to the minimum time for re-login after leaving the server.
afkTerminator.admin
When a player has this permission, the will be able to execute the command "afkt reload"
afkTerminator.notify
When a player has this permission, they will be notified with an in-game message (if they are online) when a player has been detected using an AFK Machine.
afkTerminator.mailReceive
Whan a player has this permission, they will be notified with a mail message when a player has been detected using an AFK Machine.
Vault.jar
The Vault plugin must be installed in your plugin directory if you want to use the afkTerminator permission strings
Installation
- Place AfkTerminator.jar in your plugin folder
- Place optional Vault.jar in your plguin folder if afkTerminator permission string is to be used.
- Restart your server / Reload Plugins
- Edit plugins/AfkTerminator/config.yml as needed
- Edit is not required, as defaults are set
- See insructions for config settings in the generated file or here
4. Restart your server / Reload Plugins if config.yml is modifed
That's it!
AFKTerminator can be integrated by other Plugin Developers!
The AFKTerminator has available an API so other AFK related plugins can take advantage of its detection capabilities, and use this information as part of that plugin's AFK algorithms. API instructions are found here.
Note from EDGE: The AFKTerminator was originally built for use with the OnTime plugin, but I thought there was a much larger need for this capability so I broke it out and made it slightly more powerful.
Change Log
For a complete change log, pleas see here
V3.0.8
Compiled/Tested with Spigot/Bukkit V1.9; Java8; Vault 1.5.6
Functional Enhancements
- Added 'water over fence' AFK machine detection (Ticket #67)
Fixes
- Fixed NPE seen on Projectile Machine detection (no ticket)
V3.0.7
Compiled/Tested with Spigot/Bukkit V1.9; Java8; Vault 1.5.6
Fixes
- Fixed issue (again) where new line "/n" token was not working on COMMAND penalty (no ticket)
- Fixed problem with '[VEHICLE]' variable in output, where previous data was not cleared out (no ticket)
V3.0.6
Compiled/Tested with Spigot/Bukkit V1.9; Java8; Vault 1.5.6
Fixes
- Fixed issue (really this time!) where offline players not receiving mail when enabled (Ticket #58/#61)
- Fixed issue where MOB arrow attack while player is AFK, may be falsely identified as "arrow damage" afk machine. (No ticket)
- Improved notes regarding proper syntax for using " /n " to specify multiple lines in command penalty (No Ticket)
Functional Enhancements
- Added '[vehicle]' to list of supported output variables in afkMachine detection messages to ops. This will specify the vehicle type used. (Ticket# 62)
V3.0.5
Compiled/Tested with Spigot/Bukkit V1.9; Java8; Vault 1.5.6
Fixes
- Fixed issue where offline players not receiving mail when enabled (Ticket #58)
- Fixed issue where some WATER based AFK machines were suspected by never detected (reported by user, but no ticket opened)
V3.0.4
Compiled/Tested with Spigot/Bukkit V1.9; Java8; Vault 1.5.6
- Recompiled v3.0.2 with Spigot 1.9 API, updated Java8, & latest Vault
Fixes
- Fixed NPE issue when attempting to send mail notifications (Ticket #58)
- Fixed issue where 'interaction' based AFK avoidance methods were not being detected (no ticket)
Functional Enhancements
- Will now detect some forms of farming machines
V3.0.3
Compiled/Tested with Spigot/Bukkit V1.9; Java8; Vault 1.5.6
- Recompiled v3.0.2 with Spigot 1.9 API, updated Java8, & latest Vault
V3.0.2
Compiled/Tested with Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2
Fixes
- Fixed console errors seen when Vault, which is optional plugin, is not installed on the server (Ticket #45)
V3.0.1
Compiled/Tested with Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2
Fixes
- Fixed issue with auto config upgrade when "worlds:" was not set to default '- all' in the config.yml. (Ticket #49)
V3.0.0
Compiled/Tested with Spigot/Bukkit V1.8.1; Java7; Vault 1.5.2
Functional Enhancements
- Made the plugin compatible with Spigot/Bukkit v1.8.1 and the use of UUIDs
- Added option to notify admin/moderators via mail when AFK Machines are detected. (Ticket #47)
- Made text displayed and sent in mail, upon AFK Machine detection, configurable (Ticket #47)
Fixes
- Fixed issue with 'interaction" detection enable/disable not working. (Ticket #48)
New Configuration
- mailNotifyEnable: Set to true, if players with correct permission should be sent mail upon detection of AFK Machines.
- afkDetectMsg: Configurable message displayed in-game, and mailed to players with correct permission upon detection of AFK Machines
- mailCommand: Configurable mail command to execute to send messages, when AFK Machines are detected
- mailListRemovalTime: Number of days a player with permission to receive mails can be absent before they are temporarily removed from the mail list.
New Commands
NONE
New Permissions
afkTerminator.mailReceive : If a player has this permission, they will receive a mail message when AFK Machines are detected
评论 0
登录后参与评分
还没有评论,来抢沙发吧