Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nodoka4318/savatp

a simple teleport plugin for spigot servers
https://github.com/nodoka4318/savatp

Last synced: about 1 month ago
JSON representation

a simple teleport plugin for spigot servers

Awesome Lists containing this project

README

        

# SavaTP
a simple teleport command plugin for spigot servers

## Commands

| Command | Description |
|---------------------|--------------------------------------------------|
| /savatp \ | Teleport to the point specified in arg-1 |
| /savatp set \ | Add current location to teleport points as arg-1 |
| /savatp list | List all teleport points |
| /savatp delete | Delete the point specified in arg-1 |
| /savaregister | Create player's api key |

## REST-API

Each contexts can be customized by `plugins/SavaTP/config.json`.
### `GET /savapoints`

- **Description:** Retrieve information about saved points.

- **Request:**
- Method: `GET`
- URL: `/savapoints`

- **Response:**
- Body:
```json
{
"Locations": [
{
"X": ,
"Y": ,
"Z": ,
"Yaw": ,
"Pitch": ,
"World": "",
"Name": "",
"CreatorUUID": ""
},
// Additional points if available
]
}
```

### `GET /deletepoint`

- **Description:** Delete a saved point.

- **Request:**
- Method: `GET`
- URL: `/deletepoint?key=&point=`

- **Response:**
- Body:
```json
{
"status": "ok"
}
```
or
```json
{
"status": "ng"
}
```
- Status "ok" indicates successful deletion, and "ng" indicates failure.