HomeJavaModsPOSTRequest
POSTRequest
[​IMG]

ABOUT


This plugin was made to send POST requests for a external PHP server, sending data from Minecraft Servers as you want. Works with HTTP and HTTPS protocols, accepting as many arguments as you want per command, equivalent to variables sent to external server.



INSTALL

Download and put the file POSTRequest.jar into your plugins folder and then, restart your server.



CONFIGURE

Open plugins/POSTRequest/config.txt and edit it putting your URL and your password in the correct fields. Make sure that don't forget to put ' http://' or ' https://' before the url.

After change the file, save it and restart your server again.

Is necessary yet, configure your PHP file on external server. This plugin, encrypt your password with the hash SHA-512, so your PHP file need to have the same password configured as a variable and, in a second moment, must be encrypted and compared with the hash from Minecraft
server side, to guarantee your exclusive access when setting important variables, like of monetary plugins.

A sample PHP file can be found with this plugin.



COMMAND

The syntax to use the plugin is very simple. To use variables, you can call this plugin from another, or just use global variables, like @p, @a, etc. With plugins like Skript, there are innumerable possibilities.

/pr <argument1> <argument2> <argument3> ...
Click to expand...
Example:

/pr buy Notch Vip
Click to expand...
With the command above, you send to external server, the name of player, the string 'buy' and the string 'Vip'.



PERMISSION

To use this plugin and send commands, you need to have the following permission configured on your permission system:

postrequest.pr.send (default op)
Click to expand...
Be very careful when setting this permission, if your intents are for send important data values. Although the permission, the request command can be called by console too.



API

To use API, it is very easy, and add more features, like multiple URL and different passwords per URL.

Example of use:
Code (Text):
public static void callPOSTRequest(String protocol, String url, String password, String[] args) {
 
    POSTRequestAPI.makeRequest(protocol, url, password, args);
}


DONATE

I don't made this plugin for gain anything, except facilities on my server, but if you donate me any quantity, I will can buy (someday) a new computer. The mine is dying :s But feel free to use without donating ^_^

https://b5team.com/donate
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

POSTRequest is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 441 times (via Spigot). Download it and open it directly in the game.

Explore more