[English] [日本語]
I will not be responsible for loss, trouble etc. caused by using this plugin. Please use at your own risk.
Simple HTTP Server and Web request feature in Skript easily.
- HTTP Server
- Web Request
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.
- Download
SkriptWebAPI-<Version>.jar
from here. - Put your downloaded jar to server plugins folder
- Run and ready to use
Example and syntax has provided in Skript Hub
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.
- None