RESTCraft icon

RESTCraft -----

Send command by using restful api



Futures:
- Response type
- IP whitelist
- Disable commands
- Secret hash type

All can use both query string or body

Run as a console:
to run as a console by using:
"/runAsConsole"
Request JSON body:
Name----------|---Type---| Description
secret-------------string------configured secret string
command--------string------command to execute
keyword----------string------(optional) keyword search

Run as a player:
to run as a player by using:
"/runAsPlayer"
Request JSON body:
Name----------|---Type---| Description
secret-------------string------configured secret string
command--------string------command to execute
target_player----string------target player name
keyword----------string------(optional) keyword search

Run as a player with op:
to run as a player with op by using:
"/runAsOp"
Request JSON body:
Name----------|---Type---| Description
secret-------------string------configured secret string
command--------string------command to execute
target_player----string------target player name
keyword----------string------(optional) keyword search

Check player is online:
to run as a console by using:
"/isOnline"
Request JSON body:
Name----------|---Type---| Description
secret-------------string------configured secret string
target_player----string------target player name

Example:
upload_2022-8-14_1-16-40.png

Purpur 1.19.2
upload_2022-8-14_0-13-8.png

## PLEASE DON"T COPY THIS EXAMPLE TO CONFIG ##
Code (YAML):

server
:
  ip_bind
: localhost
  port
: 7132
  password
:
    # NONE, SHA-256, SHA-512, SHA-1, MD5
    hash
: NONE
    secret
: PLEASE_CHANGE_THIS_SECRET
  # JSON, BOOLEAN, PLAINTEXT
  response_type
: JSON
  ip_whitelist
:
    enabled
: false
    list
:
   - 127.0.0.1
disable_commands
:
- op
- gamemode
switch
:
  as_player
: true
  as_op
: true
  as_console
: true
  is_online
: true
 
[​IMG]

bStats: https://bstats.org/plugin/bukkit/RESTCraft
Resource Information
Author:
----------
Total Downloads: 69
First Release: Aug 13, 2022
Last Update: Aug 13, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings