Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shoghicp
Created July 16, 2012 10:11
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 shoghicp/3121930 to your computer and use it in GitHub Desktop.
Save shoghicp/3121930 to your computer and use it in GitHub Desktop.
Test PHP CLient for Minecraft
$client = new MinecraftClient("127.0.0.1");
$client->event("onTick", "spammer");
$client->connect("troll", "trollpassword");
function spammer($data, $event, $ob){
$ob->say("SPAM!!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment