McCurl

2.1k Downloads

Overview

Gives a one-way connection between bukkit and the web: You can call any URL, including URLs which tell a PHP file to do something. Of course, "any" means "I haven't found one it won't call, but I sure as heck haven't tried them all."

Made in response to Fronix's request for a "Simple plugin to call a .php file"... In his case, it was to use PHP to interact with the MC sql files. Mix it with Command Signs (or one of its little sisters) and you can keep a log of redstone signals, or with Ne0nx3r0's Better Alias to create a quick link to a "travel journal".

Permissions

mccurl.use
Allows the player to use the /mccurl command.
mccurl.reload
Allows the player to use the /mccurlr command to reload the config.yml.
mccurl.mccall.[permission]
Allows the player to use admin-defined /mccall commands.

Commands

/mccurl [URL]
Call the URL. Does not receive any data back, merely calls the URL.
/mccall [name [argument(s)]]
Calls the pre-defined URL with the arguments listed as parameters. Includes a "playername" parameter.
I have not sat down and thoroughly tested /mccall. Let me know how it works for you, or *if* it works for you.
/mccurlr
Reload the config.yml file. Only used (currently) for mccall commands.

Example

/mccurl http://example.com/journal.php?entry=I am nowhere, for I am here.
Make a journal entry at your example.com journal.
/mccall location home
Calls the URL that you've named 'location' with the location and name of 'home'. Maybe you could make a Real Life address book for your Minecraft home? (Bother, I need to get away from the computer desk more often...)