注意:本项目已迁移至 Modrinth。所有后续更新都将发布在那里,此页面将不再接收更新。

一款允许你创建虚拟玩家以便通过控制台或游戏内轻松调试插件的插件。
VirtualPlayers 是一款专为开发者和服务器管理员设计的插件,用于轻松测试和调试需要多个玩家的插件。虚拟玩家在现实中并不存在,只能通过控制台或聊天访问,这意味着它们在服务器列表、玩家计数和游戏内都是不可见的。
VirtualPlayers 还能与许多大型 Minecraft 插件(如 WorldEdit)配合使用,让你可以通过控制台执行通常仅限在线玩家进行的操作。此外,你也可以在游戏内或通过其他命令发送者(如命令方块或告示牌)来管理虚拟玩家。
功能
- 通过控制台或聊天以虚拟玩家身份运行命令
- 通过控制台或聊天以虚拟玩家身份发送消息
- 将虚拟玩家传送到特定位置
- 赋予/撤销虚拟玩家的 OP 权限以测试命令执行
- 以虚拟玩家身份攻击真实玩家以测试战斗机制
命令
| 命令 | 描述 |
|---|---|
| /vp create <name> | 创建一个新的虚拟玩家。 |
| /vp remove <name> | 移除一个虚拟玩家。 |
| /vp removeall | 移除所有虚拟玩家。 |
| /vp select <player> | 选择一个虚拟玩家。 |
| /vp observe <player> | 观察一个虚拟玩家。 |
| /vp unobserve <player> | 停止观察一个虚拟玩家。 |
| /vp list | 列出虚拟玩家。 |
| /vp verbose [player] [true|false] | 切换虚拟玩家的详细输出模式。 |
| /vp teleport [player] [location] | 将虚拟玩家传送到指定位置。 |
| /vp command [player] <command...> | 以虚拟玩家身份运行一条命令。 |
| /vp chat [player] <message...> | 以虚拟玩家身份发送一条聊天消息。 |
| /vp op [player] | 赋予该虚拟玩家 OP 权限。 |
| /vp deop [player] | 撤销该虚拟玩家的 OP 权限。 |
| /vp attack [player] <target> [damage] | 以此虚拟玩家身份攻击另一名玩家。 |
权限
| 权限 | 对应命令 |
|---|---|
| virtualplayers.command.help | /vp [help] |
| virtualplayers.command.create | /vp create |
| virtualplayers.command.remove | /vp remove |
| virtualplayers.command.removeall | /vp removeall |
| virtualplayers.command.select | /vp select |
| virtualplayers.command.observe | /vp observe |
| virtualplayers.command.unobserve | /vp unobserve |
| virtualplayers.command.list | /vp list |
| virtualplayers.command.verbose | /vp verbose |
| virtualplayers.command.teleport | /vp teleport |
| virtualplayers.command.command | /vp command |
| virtualplayers.command.chat | /vp chat |
| virtualplayers.command.op | /vp op |
| virtualplayers.command.deop | /vp deop |
| virtualplayers.command.attack | /vp attack |
开发者指南
VirtualPlayers 为开发者提供了 API。有关使用 API 的说明,请参阅 开发者指南。
链接
- 网站:
- Discord:BattlePlugins Discord
- 捐赠:BattlePlugins Patreon
NOTE: This project has moved to Modrinth. All future updates will be posted there and this page will no longer receive updates.

A plugin that allows you to create virtual players for easy debugging of plugins through console or in-game.
VirtualPlayers is a plugin designed for developers and server admins to easily test and debug plugins that require multiple players. Virtual players are non-existent in-game, and are only accessible through console or chat, meaning they will be invisible on the server list, player count and in-game.
VirtualPlayers will also work with many large Minecraft plugins, such as WorldEdit, allowing you to perform actions that are typically reserved for online players, but through a console. Virtual players can also be managed in-game, or through other command senders, such as command blocks or signs.
Features
- Run commands as a virtual player through console or chat
- Send messages as a virtual player through console or chat
- Teleport a virtual player to a specific location
- Op/de-op a virtual player to test command execution
- Attack a real player as a virtual player to test combat mechanics
Commands
| Command | Description |
|---|---|
| /vp create <name> | Creates a new virtual player. |
| /vp remove <name> | Removes a virtual player. |
| /vp removeall | Removes all virtual players. |
| /vp select <player> | Select a virtual player. |
| /vp observe <player> | Observes a virtual player. |
| /vp unobserve <player> | Unobserves a virtual player. |
| /vp list | Lists virtual players. |
| /vp verbose [player] [true|false] | Toggles verbosity for the virtual player. |
| /vp teleport [player] [location] | Teleports the virtual player to a location. |
| /vp command [player] <command...> | Runs a command as a virtual player. |
| /vp chat [player] <message...> | Sends a chat message as a virtual player. |
| /vp op [player] | Ops the virtual player. |
| /vp deop [player] | De-ops the virtual player. |
| /vp attack [player] <target> [damage] | Attacks another player as this virtual player. |
Permissions
| Permission | Command |
|---|---|
| virtualplayers.command.help | /vp [help] |
| virtualplayers.command.create | /vp create |
| virtualplayers.command.remove | /vp remove |
| virtualplayers.command.removeall | /vp removeall |
| virtualplayers.command.select | /vp select |
| virtualplayers.command.observe | /vp observe |
| virtualplayers.command.unobserve | /vp unobserve |
| virtualplayers.command.list | /vp list |
| virtualplayers.command.verbose | /vp verbose |
| virtualplayers.command.teleport | /vp teleport |
| virtualplayers.command.command | /vp command |
| virtualplayers.command.chat | /vp chat |
| virtualplayers.command.op | /vp op |
| virtualplayers.command.deop | /vp deop |
| virtualplayers.command.attack | /vp attack |
Developer Guide
VirtualPlayers offers an API for developers to use. Please see the Developer Guide for instructions on using the API.
Links
- Website:
- Discord: BattlePlugins Discord
- Donate: BattlePlugins Patreon
下载 VirtualPlayers2
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VirtualPlayers2
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VirtualPlayers2
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VirtualPlayers2
下载 VirtualPlayers2
下载 VirtualPlayers2
下载 VirtualPlayers2
下载 VirtualPlayers2
下载 VirtualPlayers2
下载 VirtualPlayers2
v1.10.0
- 修复了与某些插件相关的 Bug 和控制台大量刷屏问题(VirtualPlayers 现在运行更加流畅!)
- 优化了消息格式和语法
- 修复了在 Gson 未加入类路径时,插件在 <1.8 版本无法启动的 Bug
- 代码清理与更新,提升可维护性
- 其他杂项更改
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
评论 0
登录后参与评分
还没有评论,来抢沙发吧