SkHttp-Rework

SkHttp

SkHttp is a powerful Skript addon that provides HTTP client functionality, WebSocket support, and web server capabilities for Minecraft servers.

Features

Requirements

Installation

  1. Download the latest release from the Releases page
  2. Place the SkHttp-x.x.jar file in your server’s plugins folder
  3. Restart your server
  4. The plugin will automatically check for compatibility and disable itself if requirements are not met

Quick start

Copy examples/basic-http.sk to plugins/Skript/scripts, then reload it:

/sk reload basic-http

Run /skhttp-example in-game. The example sends a GET request, checks the response status, and prints the response body. Start with this synchronous version to verify the installation before adapting it to asynchronous requests.

Version Compatibility

This plugin automatically validates version compatibility on startup:

If your server doesn’t meet these requirements, the plugin will disable itself and display an error message.

Building from Source

  1. Clone the repository:
    git clone https://github.com/NikitaRTN/SkHttp-Rework.git
    cd SkHttp-Rework
    
  2. Build the plugin:
    ./gradlew shadowJar
    
  3. The compiled JAR will be in build/libs/SkHttp-x.x.jar

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

The source code

If you want to change the code or view its contents, go to Code page.

Changelog

Version 1.6