描述
AltDetector 检测并报告玩家可能存在的备用账号。它会追踪每个玩家的 IP 地址,并在同一 IP 地址被多个账号使用时发出报告。如果检测到备用账号,将向管理员(ops)发送通知。无需进行任何配置。只需将其放入你的 plugins 文件夹并重启服务器即可。默认情况下,玩家 IP 历史记录保留 60 天。
该插件不会对拥有备用账号的玩家进行惩罚。请注意,来自同一 IP 地址的正常玩家(例如住在同一屋檐下的兄弟姐妹)会被识别为潜在的备用账号。 一些 ISP(如 Starlink)使用 CGNAT,这会将相同的 IP 地址分配给该地区成百上千的用户。该插件的目的是帮助管理员了解他们的玩家情况,而不是为了惩罚他们。

如果你使用了 SuperVanish 或 PremiumVanish 插件,AltDetector 将使用 SV/PV 的“分层可见性与权限”功能,这将创建一个隐身玩家层级结构,并且仅向消息接收者显示与其可见玩家相关的消息。
Altdetector 支持 PlaceholderAPI 扩展。如果你使用 PlaceholderAPI,则默认启用此功能。格式为:%altdetector_alts_<playername>%,其中 <playername> 区分大小写。你可以在配置文件中配置每个备用账号之间的分隔符。
当检测到备用账号时,Altdetector 可以向 Discord 服务器发送消息。这必须在配置文件中设置。
默认情况下,插件使用 SQLite 存储数据,无需更改任何配置。如果你想使用 MySQL,请参阅下文。注意,Spigot 1.8.8 自带一个非常旧的 SQLite 版本,无法与此插件配合使用。
命令
/alt [player] - 列出指定玩家的潜在备用账号。如果未指定玩家,则列出所有在线玩家的潜在备用账号。

/alt delete <player> - 删除指定玩家在 AltDetector 数据中的所有记录。
关于离线玩家查询的说明:当你为当前不在服务器上的玩家执行 /alt <player> 时,插件会找到该玩家最近的 IP 地址并基于它们进行查询。如果该玩家最近使用了多个 IP 地址,或者备用账号在多个用户之间共享,这可能会导致结果不一致。例如,A 可能会显示 B 是备用账号,但 B 不会显示 A 是备用账号。这不是 bug,而是由于一个玩家使用了多个 IP 地址所致。
权限
altdetector.alt - 允许使用 /alt 命令。默认为 op。
altdetector.alt.seevanished - 允许命令发起者查看有关隐身玩家的消息。默认为 op。
altdetector.alt.delete - 允许使用 /alt delete 命令。默认为 op。
altdetector.exempt - 使玩家免于插件处理。默认为 false。
altdetector.notify - 当检测到备用账号时通知此玩家。默认为 op。
altdetector.notify.seevanished - 允许此玩家查看当隐身玩家检测到备用账号时的通知。默认为 op。
配置(可选)
expiration-time - 数据过期时间(以天为单位)(默认 60 天)。早于此时间的 IP 数据将从插件的数据文件中清除。数据仅在插件启动时清除。如果你觉得玩家的 IP 地址变化更频繁,可以适当降低此值。
database-type, mysql, convert-from, sql-debug - 默认情况下,插件使用 SQLite 存储数据,无需更改任何配置。如果你想使用 MySQL,请参阅下文。注意,Spigot 1.8.8 自带一个非常旧的 SQLite 版本,无法与此插件配合使用。
以下条目用于更改消息内容。同样,这是可选的。所有字符串都应包含在双引号中("…")。
join-player-prefix, join-player, join-player-list, join-player-separator - 这些字符串用于构建玩家加入服务器时的消息输出。
altcmd-player, altcmd-player-list, altcmd-player-separator - 这些字符串用于构建 /alt 命令输出的消息。
altcmd-playernoalts, altcmd-noalts, altcmd-playernotfound, altcmd-paramerror, altcmd-noperm - 这些字符串用于 /alt 命令的其他各种响应。
delcmd-removedsingular, delcmd-removedplural - 这些字符串用于 /alt delete 命令的响应。
placeholder-enabled, placeholder-separator - 这些用于 PlaceholderAPI 扩展。
discord - 配置这些设置以使用 Discord webhook。mc-server-name 可以是你想在 Discord 消息中显示的任何字符串。这用于 Discord 的作者名称。
MySQL 配置
默认情况下,插件使用 SQLite。如果你想使用 MySQL,请运行插件以创建 config.yml 文件,然后编辑 config.yml 并将 database-type 更改为 mysql 并填写 mysql 数据库凭据。jdbcurl-properties 将附加到连接 URL,因此你可以添加你的 MySQL 服务器所需的任何项。然后重启你的服务器。
切换数据库
你可以在 SQLite 和 MySQL 数据库之间切换而不会丢失数据。在 config.yml 中,将 database-type 更改为你要转换到的数据库类型,并将 convert-from 更改为你正在从哪种数据库进行转换。你还需要填写 MySQL 数据库的凭据。重启服务器后,你的数据将自动转换。这可能需要一些时间,尤其是在转换为 MySQL 时。重要提示:你必须删除目标数据库中任何旧的数据。 对于转换为 SQLite,这意味着删除 altdetector.db 文件;对于转换为 MySQL,使用 phpMyAdmin 等程序删除 altdetector_iptable 和 altdetector_playertable 表。
杂项
如果你使用的是 Geyser 插件(允许 Bedrock 客户端加入你的 Spigot 服务器),你还需要 Floodgate 插件才能正确识别 Bedrock 玩家的账号。
本插件使用 bStats 指标系统提供 匿名 使用数据。你可以通过修改 plugins/bStats/config.yml 全局选择退出。相关指标可在 查看。
Description
AltDetector detects and reports players' potential alt accounts. It keeps track of each player's IP address and reports when the same IP address has been used by multiple accounts. A notification is sent to ops if an alt is detected. No configuration is required. Just drop it in your plugins folder and restart your server. By default, player IP history is retained for 60 days.
The plugin does not punish players with alt accounts. Note that legitimate players connecting from the same IP address (e.g., siblings living at the same house) will be identified as potential alts. Some ISPs, such as Starlink, use CGNAT, which assigns the same IP address to hundreds of users in a region. The purpose of the plugin is to help administrators keep track of their players, not to punish them.

If you use the plugins SuperVanish or PremiumVanish, AltDetector will use SV's/PV's "Layered See And Use Permissions", which creates a hierarchy of vanished players, and will only show messages about the players visible to the message recipient.
Altdetector supports PlaceholderAPI expansions. This is enabled by default if you use PlaceholderAPI. The format is: %altdetector_alts_<playername>% where <playername> is case-sensitive. You can configure the separator between each alt in the config file.
Altdetector can send messages to a Discord server when alts are detected. This must be set up in the config file.
By default the plugin uses SQLite to store data, and no configuration changes are needed. If you want to use MySQL, see the section below. Note that Spigot 1.8.8 ships with a very old version of SQLite which will not work with this plugin.
Commands
/alt [player] - Lists potential alts for the specified player. If no player is specified, potential alts for all online players will be listed.

/alt delete <player> - Deletes all records in the AltDetector data for the specified player.
A note about offline player lookups: When you issue /alt <player> for a player who is not currently on the server, the plugin will find all the player's recent IP addresses and do a lookup based on them. If the player has used multiple IP addresses recently, or if the alt has been shared between multiple users, this may show inconsistent results. For example, A may be shown an alt of B, but B is not shown as an alt of A. This is not a bug, but is due to multiple IP addresses being used for one player.
Permissions
altdetector.alt - Allows use of the /alt command. Defaults to op.
altdetector.alt.seevanished - Allows the command issuer to see messages about vanished players. Defaults to op.
altdetector.alt.delete - Allows use of the /alt delete command. Defaults to op.
altdetector.exempt - Exempts the player from processing by the plugin. Defaults to false.
altdetector.notify - Notifies this player when an alt is detected. Defaults to op.
altdetector.notify.seevanished - Allows this player to see notices when an alt is detected for a vanished player. Defaults to op.
Configuration (optional)
expiration-time - The data expiration time in days (default 60 days). IP data older than this will be purged from the plugin's data file. Data is only purged at plugin startup. You might want to lower this if you feel your players' IP addresses change more frequently.
database-type, mysql, convert-from, sql-debug - By default the plugin uses SQLite to store data, and no configuration changes are needed. If you want to use MySQL, see the section below. Note that Spigot 1.8.8 ships with a very old version of SQLite which will not work with this plugin.
The following entries are for changing the message contents. Again, this is optional. All strings should be enclosed in double quotes ("…").
join-player-prefix, join-player, join-player-list, join-player-separator - These strings are used to construct the message output when a player joins the server.
altcmd-player, altcmd-player-list, altcmd-player-separator - These strings are used to construct the message(s) output by the /alt command.
altcmd-playernoalts, altcmd-noalts, altcmd-playernotfound, altcmd-paramerror, altcmd-noperm - These strings are used for various other responses from the /alt command.
delcmd-removedsingular, delcmd-removedplural - These strings are used for responses from the /alt delete command.
placeholder-enabled, placeholder-separator - These are used for PlaceholderAPI expansions.
discord - Configure these settings to use a Discord webhook. mc-server-name can be any string that you want to show in the Discord messages. This is used for the Discord author name.
MySQL configuration
By default, the plugin uses SQLite. If you want to use MySQL, run the plugin so the config.yml file is created, then edit config.yml and change database-type to mysql and fill out the mysql database credentials. jdbcurl-properties will be appended to the connection URL, so you can add any items that are required by your MySQL server. Then restart your server.
Switching databases
You can switch between SQLite and MySQL databases without losing data. In config.yml, change database-type to the type of database you want to convert to, and change convert-from to the type of database you're converting from. You'll need to fill out the mysql database credentials, too. When you restart your server, your data will automatically be converted. This can take some time, especially when converting to MySQL. Important: You must delete any old data in the database you're converting to. For converting to SQLite, that would mean deleting the altdetector.db file; For converting to MySQL, drop the altdetector_iptable and altdetector_playertable tables using a program such as phpMyAdmin.
Miscellaneous
If you're using the Geyser plugin, which allows Bedrock clients to join your Spigot server, you also need the Floodgate plugin in order to correctly identify Bedrock players' alts.
This plugin uses the bStats metrics system to provide anonymous usage data. You may opt-out globally by changing plugins/bStats/config.yml. The metrics are available at
评论 0
登录后参与评分
还没有评论,来抢沙发吧