No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 3f7d59b May 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main
README.md
build.gradle
settings.gradle

README.md

WebAddon

Intuitive http server functionality for Skript using the Spark Framework.

Example:

open a web server on port 8080:
  get /users/getUser/%{_user}%:
    broadcast "%header ""skript"" of event-response%"
    set header "skript" of event-response to "true"
    broadcast "%header ""skript"" of event-response%"
    set body of event-response to "%ip of event-request% requested user ##%{_user}%, from the path %path of event-request%"

  post /users/updateName/%{_user}%:
    send back "updated %{_user}%'s name!"

  delete /users/delete/%{_user}%:
    send back "deleted %{_user}%!"

  put /users/addUser/%{_user}%:
    send back "added user %{_user}%"

  trace /users/trace/%{_user}%:
    send back "no clue what this is for but you traced %{_user}%"

  options /users/enableSounds/%{_user}%:
    send back "enabled sounds for %{_user}%"

  patch /users/patch/%{_user}%:
    send back "patched %{_user}%"

  head /users/head/%{_user}%:
    send back "here is %{_user}%'s head"

  connect /users/connect/%{_user}%:

    send back "you connected to %{_user}%"