有没有想过伪装成其他玩家?无论是为了制作机器动画、角色扮演、在阵营中进行 5D 国际象棋,还是仅仅恶作剧整蛊朋友,都有很多(相对)充分的理由去冒充他人的身份。
需要 Fabric API 的最新版本
概述
Impersonate 允许玩家获取其他玩家的名字和外观。在伪装他人时,一名玩家将会:
- 拥有被伪装玩家的皮肤
- 拥有被伪装玩家的名称标签
- 发送的所有聊天消息都像是由被伪装玩家发出的
- 在在线玩家列表中显示为被伪装的玩家
- 以被伪装玩家的身份签署书籍
- 等等
然而,他们无法欺骗被伪装玩家的宠物(如果有的话)。
为了避免管理混乱,服务器日志将始终显示实际玩家的名称及其虚假身份。服务器管理员将以相同的方式看到正在进行的伪装行为。
此模组在服务端运行(兼容原版客户端),但仍建议在客户端安装,特别是对于服务器管理员而言。
命令
Impersonate 添加了 /impersonate 命令,允许服务器管理员和地图制作者通过命令与 API 进行交互。
/impersonate disguise
/impersonate disguise as <name> [<targets>] [<key>] :伪装一个或多个玩家
<name> :要伪装的玩家名称。该玩家不必在线,甚至可以是虚构的。
[<targets>] (可选):如果指定,必须是玩家的用户名或目标选择器。如果未指定,默认为使用该命令的玩家。当在命令方块中使用时,玩家参数不是可选的。
[<key>] (可选):如果指定,必须是一个有效的标识符,作为此次伪装的键值。
/impersonate disguise clear [<targets>] [<key>] :停止对一个或多个玩家的伪装
[<targets>] (可选):如果指定,必须是玩家的用户名或目标选择器。如果未指定,默认为使用该命令的玩家。当在命令方块中使用时,玩家参数不是可选的。
[<key>] (可选):如果指定,必须是之前用于启动伪装的某个有效标识符键值。如果留空不填,该命令将清除所有活跃的伪装。
游戏规则 (Gamerules)
impersonate:fakeCapes :伪装者是否应获得被伪装玩家的披风和鞘翅。默认为 false。
impersonate:opRevealImpersonations :在线服务器管理员是否应看到正在进行的伪装行为。默认为 true。
impersonate:logRevealImpersonations :服务器日志中是否应显示正在进行的伪装行为。默认为 true。
作为模组开发者使用 Impersonate
您可以通过在 build.gradle 中插入以下内容,将 Impersonate 添加到您的开发环境中:
repositories {
jcenter()
maven {
name = "Ladysnake Libs"
url = 'https://dl.bintray.com/ladysnake/libs' }
}
}
dependencies {
modImplementation "io.github.ladysnake:Impersonate:${impersonate_version}"
include "io.github.ladysnake:Impersonate:${impersonate_version}"
// Impersonate dependencies
include "com.github.onyxstudios.Cardinal-Components-API:cardinal-components-base:${cca_version}"
include "com.github.onyxstudios.Cardinal-Components-API:cardinal-components-entity:${cca_version}"
}
然后您可以将库版本添加到您的 gradle.properties 文件中:
# Impersonate
impersonate_version = 1.x.y
# Cardinal Components
cca_version = 2.x.y
您可以在 版本标签页 中找到 Impersonate 的当前版本,
并在 相应的仓库 中找到最新的 CCA 版本。
Have you ever wanted to impersonate another player ? Be it for making machinimas, roleplaying, playing 5D chess in factions, or just pranking friends, there are lots of (relatively) good reasons to assume the identity of someone else.
Requires the latest version of Fabric API
Overview
Impersonate allows players to take on the name and appearance of other players. When impersonating someone, a player will:
- have the skin of the impersonated player
- have the nameplate of the impersonated player
- send every chat message as if they were the impersonated player
- appear as the impersonated players in online player lists
- sign books as if they were the impersonated player
- etc.
They will however not fool the impersonated player's pets, if any.
To avoid moderation chaos, server logs will always display the actual player's name, alongside their fake identity. Server operators will have ongoing impersonations revealed in the same way.
This mod works serverside (compatible with vanilla clients), but installation on clients is still recommended, notably for server operators.
Commands
Impersonate adds the /impersonate command, allowing server operators and mapmakers to interact with the API through commands.
/impersonate disguise
/impersonate disguise as <name> [<targets>] [<key>] : disguises one or more players
<name> : Name of the player to impersonate. Does not have to be online or even real.
[<targets>] (optional) : If specified, must be either a player's username or a target selector. If unspecified, defaults to the player using the command. When used in a command block, player is not optional.
[<key>] (optional) : If specified, must be a valid identifier serving as a key for the impersonation.
/impersonate disguise clear [<targets>] [<key>] : stops the impersonation of one or more players
[<targets>] (optional) : If specified, must be either a player's username or a target selector. If unspecified, defaults to the player using the command. When used in a command block, player is not optional.
[<key>] (optional) : If specified, must be a valid identifier that was previously used as a key to start an impersonation. If left unspecified, the command will clear every active impersonation.
Gamerules
impersonate:fakeCapes : Whether impersonators should get the cape and elytra of impersonated players. Defaults to false.
impersonate:opRevealImpersonations : Whether ongoing impersonations should be revealed to online server operators. Defaults to true.
impersonate:logRevealImpersonations : Whether ongoing impersonations should be revealed in the server logs. Defaults to true.
Using Impersonate as a mod developer
You can add Impersonate to your development environment by inserting the following in your build.gradle :
repositories {
jcenter()
maven {
name = "Ladysnake Libs"
url = 'https://dl.bintray.com/ladysnake/libs' }
}
}
dependencies {
modImplementation "io.github.ladysnake:Impersonate:${impersonate_version}"
include "io.github.ladysnake:Impersonate:${impersonate_version}"
// Impersonate dependencies
include "com.github.onyxstudios.Cardinal-Components-API:cardinal-components-base:${cca_version}"
include "com.github.onyxstudios.Cardinal-Components-API:cardinal-components-entity:${cca_version}"
}
You can then add the library version to your gradle.propertiesfile:
# Impersonate
impersonate_version = 1.x.y
# Cardinal Components
cca_version = 2.x.y
You can find the current version of Impersonate in the versions tab,
and the latest CCA version in the appropriate repository.
评论 0
登录后参与评分
还没有评论,来抢沙发吧