This commit is contained in:
2025-03-06 22:38:53 +01:00
parent 6b406c24d3
commit f7fa5d5be4
8 changed files with 138 additions and 113 deletions
+18 -12
View File
@@ -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.