Skip to content

Provides Web request features and HTTP Server feature in Skript

License

Notifications You must be signed in to change notification settings

faketunaPrivateCamp/SkriptWebAPI

Repository files navigation

SkriptWebAPI - SKeb

[English] [日本語]

Disclaimer

I will not be responsible for loss, trouble etc. caused by using this plugin. Please use at your own risk.

Index

About

Simple HTTP Server and Web request feature in Skript easily.

Features

  • HTTP Server
  • Web Request

Install

This plugin requires paper server or paper based server.

This plugin able to load in 1.13 or higher with Skript 2.7.3 or higher. but only 1.20.2 or higher is officially supported.

  1. Download SkriptWebAPI-<Version>.jar from here.
  2. Put your downloaded jar to server plugins folder
  3. Run and ready to use

Documentation

Example and syntax has provided in Skript Hub

SkriptHubViewTheDocs

Important

If you use reply effect not in end of event you need exit after reply for avoid error

if (something):
    reply %httpexchange% with %string% and response code 200
    exit
if (something2):
    reply %httpexchange% with %string% and response code 202
    exit
    

You should respond the HTTP request otherwise HTTP clients keep waiting for your response.

on receive get request:
    set {_request} to event-request

    if (something):
        reply {_request} with %string% and response code 200
        exit
    
    reply {_request} with %string% and response code 500

If someone know forcing this syntax above please open issue.

Todo

  • None

About

Provides Web request features and HTTP Server feature in Skript

Resources

License

Stars

Watchers

Forks

Languages