rewrite
This commit is contained in:
@@ -1,22 +1,28 @@
|
||||
# SaturnClient API
|
||||
|
||||
The api for AuraClient which is a Minecraft mod Client
|
||||
|
||||
# Handshake
|
||||
In order to communicate with the server, you will have to make a handshake, here is how
|
||||
```
|
||||
<MOJANG-SESSION-TOKEN>
|
||||
```
|
||||
The session token is stored on your minecraft client when it communicates with Mojang servers, as you might understand, this token is a private token used for authentication with Mojang servers, Why do we need it? Because our server needs to understand that whoever logs in with SaturnClient is you and when you make changes in your client, the changes get synced with others, Example: Changing Cloak.
|
||||
|
||||
# Protocol base
|
||||
All whitespace is used
|
||||
Every request should be only one line
|
||||
|
||||
```
|
||||
method
|
||||
@key=value
|
||||
```
|
||||
For private requests (requires microsoft session tokens)
|
||||
```
|
||||
@SessionToken=<session-token>
|
||||
method@key1=value1@key2=value2
|
||||
```
|
||||
|
||||
# Example method
|
||||
# Error handling
|
||||
request
|
||||
```
|
||||
ping
|
||||
invalid-method
|
||||
```
|
||||
- Response
|
||||
response
|
||||
```
|
||||
pong
|
||||
```
|
||||
!Invalid method
|
||||
```
|
||||
On a response `!` means it's an error.
|
||||
|
||||
Reference in New Issue
Block a user