VirtualPlayers
VirtualPlayers
This is a lightweight plugin for 1) debugging plugins or 2) doing commands for plugins that need players.
The virtualPlayers can take actions via commands and print out the events that are happening to them on the console. These players don't show up in game, but are just used for performing actions as if a player was there. Very useful if you don't even want to load up Minecraft, you just boot the server and debug as if you were players without even running the game.
The virtual players respond to the following commands.
Commands as Players
Commands: dc = do command, <virtual player> = the name of virtual player
- dc <virtual player> any command you would normally do as a player
- dc <virtual player> op : op virtual player
- dc <virtual player> deop : deop virtual player
- dc <virtual player> respawn : respawn the virtual player
- dc <virtual player> disconnect
- dc <virtual player> connect
- dc <virtual player> reconnect
- dc <virtual player> health <amount> : give the virtual player some health ( or kill them if 0 )
- dc <virtual player> inv : print out their inventory
- dc <virtual player> giveinv <item> : give them an item
- dc <virtual player> tp <location> : teleport them to the given location ( "world,3,3,3" )
- dc <virtual player> chat my message : have the virtual player talk in chat
- dc <virtual player> hit <player2> [damage] : attack other players, defaults to 5 damage
- dc <virtual player> interact <left | right> <location> : do a PlayerInteractEvent on the specified block location
- /dc <virtual player> bpe <block> <location> : do a BlockPlaceEvent of the given material at the given location
- /dc <virtual player> bbe <location> : do a BlockBreakEvent at the given location
Other Commands
- /virtualplayers hideMessages : hide messages from players
- /virtualplayers showMessages : show messages from players
Examples:
- dc p1 spawn
- dc p2 disconnect
- dc p1 chat Hello Server!
- dc p3 bpe iron_block world,310,65,700 : Place an iron_block at world,310,65,700
hideMessages
Virtual Players will print out to the console if they teleport, receive a message or tell, respawn, connect/reconnect
I usually have a text file where I type out the commands I want to do with the players then just paste all of the actions into the console
This plugin is a godsend! :') I always hated having to open two clients to debug my multiple person plugins...
Just some thing:
If the virtual player has its real, moving version connected, bugs happen.
I created a virtual of me and it made me double chat
A "remove player" command would be appreciated
@L1amm
My dev server builds are here, http://ci.battleplugins.com/. I've also just updated and uploaded VirtualPlayers and it should be approved by bukkit after a couple of days.
The code has, and will continue to be, open and you can find most of the code for all my plugins here at https://github.com/alkarinv .
PLEASE update for 1.7.8!
Curious if theres any dev builds for this out there, and if so, where are they?
I love this plugin; It has an endless amount of uses and I really hope it never breaks. If the dev ever stops updating I hope he will let someone else take over; I'd even do it if no one else would.
@alkarinv
Thanks =)
@tanki123
Honestly I'm unsure... you would have to test. They won't show up in the player list.. but I think they might cause that area to be active if you tp them to that location...
Anyway, if you find out which let me know!
@alkarinv
What im looking for is for mobs to naturally spawn around the fakeplayer based on vanilla code.
@levisn1
When craftbukkit releases a version for 1.7.7 I'll update VirtualPlayers, not much I can do until they release that though :)
soon... I'm sure very soon...
Is it update and working alson under 1.7.7? :D thanks
@alkarinv
@tanki123
I don't have any mob spawning abilities in there atm. Fairly easy to add though, I'll see what I can do.
Does this plugin allow for mobs to spawn around the fake player?
UPDATE
Newest version works with 1.7.5. Ignore what bukkit says at the moment as they have no dropdown box for 1.7.5 yet.
@JuniorGenius
Thanks!
Thank you!
@taylormarek That wasn't uploaded when I asked that... Thanks though
@L1amm
Read the changelog for v1.5.6
ALKARINV, I LOVE YOU. the. best. plugin. ever.
Need an updated version for 1.7.5 please!
update 1.7.5 please
For a minute it wasnt working with worldedit commands but now it works again. I absolutely love you for this plugin; its 100% necessary to make my life a lot lot lot lot lot easier by allowing me to use worldedit from the console!
Umm, can you add a way to toggle player sneaking? I'm debugging a project and I need to sneak to call the onPlayerSneak event and create a list of objects. Thanks