Skip to content

Instantly share code, notes, and snippets.

@falkirks
Created December 25, 2014 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falkirks/7409082720cdf663b8b4 to your computer and use it in GitHub Desktop.
Save falkirks/7409082720cdf663b8b4 to your computer and use it in GitHub Desktop.
Specter README

Specter

Real people suck. Use fake ones instead.

Specter eliminates the need to get additional people to test a plugin and the horrible alternative. Specter generates players which can be used by PocketMine and plugins as if they were real players.

Managing players

Players can be managed via an API or through a command.

API

$dummy = new \spector\api\DummyPlayer("Playername");
$dummy->getPlayer()->sendMessage("hello");
$dummy->close();

Command

spector spawn Playername # The full command to spawn a new dummy
s s playername # Luckily there is shorthand
s c playername /spawn # Execute /spawn as player
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment