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...
/pr buy Notch VipClick to expand...
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...
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);
}
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 ^_^
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
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.