注意:本项目已迁移至 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
评论 0
登录后参与评分
还没有评论,来抢沙发吧