
一个允许你创建虚拟玩家,以便通过控制台或游戏内轻松调试插件的插件。
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

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
登录后参与评分
还没有评论,来抢沙发吧