HTTP Requests icon

HTTP Requests -----

A plugin which allows players to send HTTP POST and GET requests through an in-game command.




New features:
  • New queue system for when too many requests are being sent
Bug fixes / improvements:
  • Complete refactor of code
  • Better optimization
  • Whitelists and blacklists moved into separate files
  • Whitelist and blacklist now filter based on address authority, allowing for much more effective address filtering
The Update
Since I didn't really know Java all that well when I originally wrote this plugin, I was not able to easily implement a queue system. This is not only due to the extreme levels of spaghetti code, but also the simple fact that I just did not know Java well enough.

With this update, many tiny bugs have been fixed which I didn't know existed in the previous releases of the plugin, and many small performance issues have been fixed. Requests are now handled as individual objects, allowing for a much more flexible code base to work with.

Additionally, the whitelist and blacklist have been completely overhauled. Not only are they now in separate files, but they also filter based on the address authority. What this means, is that instead of directly checking whether a string matches another string, it's possible to completely block or allow all requests going to a certain web server at once, without having to filter each page individually.

The new, configurable queue system allows for requests to be stored temporarily until the given cooldown has expired. While the queue cannot actually be disabled under-the-hood, you can more or less achieve this by setting the queue size to 1, if it's something you don't want to have enabled on your server.

Command block mine carts have been added as a separate command sender, along with all other command senders under an "other" category, allowing for requests to be sent from any interface within the game.

The response processing function has been altered, adding in new parameters, and changing some others. Additionally, the value which must be returned has changed.

To return a command, you must now prefix the returned string with "command:".

For example,
Code (Text):
"command:say hello world!"
I will be updating the plugin's wiki page over the coming days to reflect these new changes, and to provide detailed instructions on how the new features work. If you feel you may be unable to update until this has been done, but still would like to update the plugin on your server, please feel free to reach out to me in the plugin thread, or via DMs for any help if needed.

If anyone finds any issues with this release, please do report them either on the plugin's GitHub page, or in the plugin's spigot thread.

Happy admining!
----------, May 28, 2023

Added support for all versions 1.13 and above. The plugin now uses one universal JAR instead of multiple JARs for different server versions.

New config options to customize what parts of an HTTP response are sent to a player, with credit to mvolotov for adding this.
----------, Jul 7, 2022

New features:

  • JavaScript response processing (refer to wiki for more info)
  • Customizable space character
Bug fixes / improvements:

  • Reorganized code into classes
Credit to Yeban for suggesting response processing.
----------, Jun 27, 2022

New features:
  • application/json encoding now supported
  • Customizable timeout duration
  • Reload command to reload config
Bug fixes / improvements:
  • Now using java.net.http.HttpClient
  • Spelling fixes
  • Better debugging, including HTTP response codes
Versions 1.16.5, 1.17.1, 1.18.2 & 1.19 all now supported. These versions can be found on the projects github page here.

Credit to Doncellup, who runs a server, for many feature suggestions for use with his server's discord webhook
----------, Jun 12, 2022

While the plugin should have worked out the box for 1.19, I've now updated dependencies so that the plugin will definitely work with 1.19.
----------, Jun 9, 2022

Code tidied up

Added config options to enable/disable specific senders
----------, Apr 19, 2022

Thanks to @128931 on GitHub, 1.2.1 now has new code improvements (optimization, clean up e.t.c).
----------, Apr 15, 2022

This update added a cooldown option in the config for either all requests, or URL specific requests. This allows server administrators to prevent players from carrying out potential dos attacks by limiting the amount of requests that can be sent out from the server at once.
----------, Apr 15, 2022

Administrators can now whitelist and blacklist URL's.
----------, Apr 14, 2022

Resource Information
Author:
----------
Total Downloads: 752
First Release: Apr 9, 2022
Last Update: May 28, 2023
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings