AdminScope 模组 (Fabric/Forge)
AdminScope 模组是一款服务端(及单人游戏)管理工具,允许授权工作人员以目标玩家的视角进行旁观,随后瞬间返回其确切位置和游戏规则模式。该模组专为生存服务器设计,并通过强制实施可配置的距离限制来防止自由飞行滥用。
主要功能
- 直接旁观命令:
/spectate <player> 立即切换到目标玩家的视角。
- 快速视角重置:使用
/spectate pov 或点击返回视角提示,可从自由飞行状态回到目标玩家的视角。
- 精准恢复:结束旁观后,位置、游戏规则模式和维度将被恢复。
- 自由飞行距离限制:可配置的边界(默认 30 格),超出时自动拉回并显示警告。
- 冷却时间:两次旁观会话之间可配置的冷却时间(默认 30 秒)。
- 战斗安全:可选功能,在战斗中或附近存在敌对生物时阻止旁观。
- 仅限玩家视角:如果镜头切换到生物或其他实体,相机将强制回到目标玩家身上。
- 断开连接处理:如果目标玩家离开服务器,旁观会自动结束。
- 权限撤销处理:如果用户失去权限,活跃会话将结束并恢复旁观者状态。
- 旁观链处理:你不能选择已经在被旁观的玩家;如果你正在观看的玩家开始了一个会话,你的会话会先结束。
- Jail Mod 兼容性:被监禁的玩家无法进行旁观。
- 崩溃恢复:旁观会话数据持久化保存到磁盘。
- 自动补丁配置:更新时自动添加新的配置字段。
使用方法:
- 在服务器上安装该模组和 Fabric API。
- 启动服务器一次以生成配置文件。
- 运行
/spectate <player> 开始旁观。
- 使用
/spectate pov 或点击视角提示,从自由飞行状态回到目标玩家的视角。
- 使用
/spectate stop 返回你保存的位置,或在聊天中点击停止提示。
- 编辑配置文件后,使用
/spectate reload 重载配置。
要求
- Fabric/Forge 加载器
- Fabric API
- Cloth Config API(如果安装在客户端,则非服务端必需)
安装
- 将模组的
.jar 文件放入服务器/客户端的 mods 文件夹中。
- 启动服务器以生成配置文件。
下载
该模组可在以下平台获取:
- Modrinth:
- CurseForge:
- GitHub:
可用命令
1. /spectate <player>
- 描述:立即旁观特定玩家。
- 使用者:服务器操作员以及
admin_roles 列表中列出的角色/标签对应的玩家。
- 语法:
/spectate <player_name>
- 示例:
/spectate Steve
2. /spectate stop
- 描述:停止旁观并返回原始位置。
- 使用者:服务器操作员以及
admin_roles 列表中列出的角色/标签对应的玩家。
- 示例:
/spectate stop
3. /spectate pov
- 描述:在自由飞行状态下回到目标玩家的视角。会话开始时显示的 clickable hint(可点击提示)也可执行相同操作。
- 使用者:拥有活跃旁观会话的授权玩家。
- 示例:
/spectate pov
4. /spectate reload
- 描述:无需重启服务器即可重新加载配置。
- 使用者:服务器操作员以及
admin_roles 列表中列出的角色/标签对应的玩家。
- 示例:
/spectate reload
旁观规则
在旁观期间,适用以下规则:
- 你只能使用目标玩家的视角(不能使用生物视角)。
- 自由飞行距离受
freecam_distance_limit 限制。
- 如果你反复突破限制,你将被拉回目标玩家的视角。
- 如果目标玩家离开服务器,旁观会自动结束。
- 如果你失去了使用旁观的权限,你的会话将结束并恢复保存的状态。
- 已经处于旁观会话中的玩家不能被选为目标。
- 如果你正在旁观的玩家开始了旁观会话,你的会话会在他们的会话开始前结束。
Jail Mod 兼容性
如果安装了 Jail Mod,被监禁的玩家无法使用 /spectate。
配置文件
config/spectatemod/config.json
此文件会自动生成和更新。以下是你可以找到的选项:
admin_roles:授予 /spectate 访问权限的角色/标签。你可以使用 "op,admin,mod" 或 ["op", "admin", "mod"]。使用 "op" 以包含管理员。
spectate_cooldown:两次旁观会话之间的冷却时间(秒)。
prevent_combat_spectate:如果为 true,则在战斗中或附近存在敌对生物时阻止旁观。
combat_check_radius:检查敌对生物的范围(格)。
save_spectate_positions:如果为 true,则将旁观状态保存到磁盘以用于崩溃恢复。
freecam_distance_limit:在自由飞行状态下距离目标玩家的最大距离(格)。使用 0 禁用。
示例配置:
{
"_config_guide": "SpectateMod 配置指南:\n- admin_roles:授予 /spectate 权限的角色/标签。支持 'op,admin,mod' 或 ['op','admin','mod'] 格式。\n- spectate_cooldown:管理员停止观察后,再次进行观察前的冷却时间(秒)。\n- prevent_combat_spectate:如果为 true,则当管理员处于战斗状态或附近存在敌对生物时,禁止进行观察。\n- combat_check_radius:启用 prevent_combat_spectate 时,用于检测敌对生物的半径(方块数)。\n- save_spectate_positions:如果为 true,会将观察位置保存到磁盘,以防止崩溃导致数据丢失。\n- freecam_distance_limit:在自由摄像机模式下,你可以从被观察玩家处移动的最大距离(方块数)。",
"admin_roles": "op",
"spectate_cooldown": 30,
"prevent_combat_spectate": true,
"combat_check_radius": 16.0,
"save_spectate_positions": true,
"freecam_distance_limit": 30.0
}
数据持久化
当前活跃的观察会话将保存至:
config/spectatemod/spectate_data.json
这允许服务器在发生崩溃或重启后(当配置中启用此功能时),将管理员恢复到正确的位置。
使用提示
修改配置后,请使用 /spectate reload 命令。如果你使用自定义角色,请添加类似如下的标签:
/tag @p add admin
AdminScope Mod (Fabric/Forge)
The AdminScope Mod is a server-side (and singleplayer) moderation tool that lets authorized staff spectate a player using the target player's POV, then instantly return to their exact position and gamemode. It is built for survival servers and avoids freecam abuse by enforcing a configurable distance limit.
Key Features
- Direct spectate command:
/spectate <player> immediately switches you to the target player's POV.
- Quick POV reset: Use
/spectate pov or click the return-to-POV hint to get back to the target player's view from freecam.
- Accurate restore: Position, gamemode, and dimension are restored when spectate ends.
- Freecam distance limit: Configurable boundary (default 30 blocks) with automatic snap-back and warnings.
- Cooldown: Configurable cooldown between spectate sessions (default 30 seconds).
- Combat safety: Optional block when in combat or near hostile mobs.
- Player-only POV: Camera is forced back to the target player if it switches to mobs or other entities.
- Disconnect handling: Spectating ends automatically if the target leaves the server.
- Permission revocation handling: An active session ends and restores the spectator if they lose permission.
- Spectate chain handling: You cannot target someone already spectating; if someone you are watching starts a session, your session ends first.
- Jail Mod compatibility: Jailed players cannot spectate.
- Crash recovery: Spectate sessions are persisted to disk.
- Auto-patching config: New config fields are added automatically on update.
How to use:
- Install the mod and Fabric API on the server.
- Start the server once to generate configuration files.
- Run
/spectate <player> to start spectating.
- Use
/spectate pov or the clickable POV hint to return to the target's POV from freecam.
- Use
/spectate stop to return to your saved position, or click the stop hint in chat.
- Use
/spectate reload after editing the config.
Requirements
- Fabric/Forge Loader
- Fabric API
- Cloth Config API (If installed on client, Not required on server)
Installation
- Place the mod's
.jar file in the server/client mods folder.
- Start the server to generate configuration files.
Download
The mod is available on:
- Modrinth:
- CurseForge:
- GitHub:
Available Commands
1. /spectate <player>
- Description: Spectate a specific player immediately.
- Who can use it: Server operators and players with a role/tag listed in
admin_roles.
- Syntax:
/spectate <player_name>
- Example:
/spectate Steve
2. /spectate stop
- Description: Stop spectating and return to your original position.
- Who can use it: Server operators and players with a role/tag listed in
admin_roles.
- Example:
/spectate stop
3. /spectate pov
- Description: Return to the target player's POV while in freecam. The same action is available through the clickable hint shown when a session starts.
- Who can use it: Authorized players with an active spectate session.
- Example:
/spectate pov
4. /spectate reload
- Description: Reloads the configuration without restarting the server.
- Who can use it: Server operators and players with a role/tag listed in
admin_roles.
- Example:
/spectate reload
Spectate Rules
While spectating, the following rules apply:
- You can only use the target player's POV (no mob POV).
- Freecam distance is limited by
freecam_distance_limit.
- If you push the limit repeatedly, you are snapped back to the target POV.
- If the target leaves the server, spectating ends automatically.
- If you lose permission to use spectating, your session ends and your saved state is restored.
- A player already in a spectate session cannot be selected as a target.
- If someone you are spectating starts a spectate session, your session ends before theirs starts.
Jail Mod Compatibility
If Jail Mod is installed, jailed players cannot use /spectate.
Configuration file
config/spectatemod/config.json
This file is automatically generated and updated. Here are the options you can find:
admin_roles: Roles/tags that grant /spectate access. You can use either "op,admin,mod" or ["op", "admin", "mod"]. Use "op" to include operators.
spectate_cooldown: Cooldown in seconds between spectate sessions.
prevent_combat_spectate: If true, prevents spectating while in combat or near hostile mobs.
combat_check_radius: Radius in blocks to check for hostile mobs.
save_spectate_positions: If true, saves spectate state to disk for crash recovery.
freecam_distance_limit: Max distance (in blocks) from the target player while in freecam. Use 0 to disable.
Example configuration:
{
"_config_guide": "SpectateMod Configuration Guide: \n- admin_roles: Roles/tags that grant /spectate access. Supports either 'op,admin,mod' or ['op','admin','mod'].\n- spectate_cooldown: Cooldown time in seconds before an admin can spectate again after stopping.\n- prevent_combat_spectate: If true, prevents spectating when the admin is in combat or near hostile mobs.\n- combat_check_radius: Radius in blocks to check for hostile mobs when prevent_combat_spectate is enabled.\n- save_spectate_positions: If true, saves spectate positions to disk to prevent data loss on crashes.\n- freecam_distance_limit: Max distance (in blocks) you can move away from the spectated player while in freecam.",
"admin_roles": "op",
"spectate_cooldown": 30,
"prevent_combat_spectate": true,
"combat_check_radius": 16.0,
"save_spectate_positions": true,
"freecam_distance_limit": 30.0
}
Data persistence
Active spectate sessions are saved to:
config/spectatemod/spectate_data.json
This allows the server to restore admins to their correct position after crashes or restarts (when enabled in config).
Usage Tips
Use the /spectate reload command after changing configuration. If you use custom roles, add tags like:
/tag @p add admin
评论 0
登录后参与评分
还没有评论,来抢沙发吧