McCurl
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...)
This is working really well in my 1.7.9 server. It's simple, does what it says it does. I'm using in conjunction with Denizen to notify me when players log in and out and sends /helpop messages. I curl the request to a PHP script I made that then sends out a Pushover request, so I get the notification on my phone and computer. :) It's a hacky way of doing it, but this plugin helped bridge the gap I was looking for. Thanks!
Update?
@Sithdown
Hm. I'm looking into it.
EDIT: Got it. I was using player.getDisplayName() instead of player.getName(). It should be fixed in version b.05, as soon as it gets approved.
Oh yes, it works! :)
Thank you very much, sir.
Just so you know, 'pname' is sent as '§c<actualplayername>§f§f' (colour codes). Not a problem, though.
Hey, everybody! Thanks for downloading and installing McCurl... How is it working for you? I'm kinda freaking out because nobody tells me!