mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
42 lines
801 B
Protocol Buffer
42 lines
801 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package minecraft;
|
|
|
|
option go_package = "./proto;minecraft";
|
|
|
|
service Minecraft {
|
|
rpc Ping(PingRequest) returns (PingResponse) {}
|
|
}
|
|
|
|
message PlayerSample {
|
|
// unique id of player
|
|
string uuid = 1;
|
|
// name of the player
|
|
string name = 2;
|
|
}
|
|
|
|
// Ping a minecraft server
|
|
message PingRequest {
|
|
// address of the server
|
|
string address = 1;
|
|
}
|
|
|
|
message PingResponse {
|
|
// Latency (ms) between us and the server (EU)
|
|
uint32 latency = 1;
|
|
// Number of players online
|
|
int32 players = 2;
|
|
// Max players ever
|
|
int32 max_players = 3;
|
|
// Protocol number of the server
|
|
int32 protocol = 4;
|
|
// Favicon in base64
|
|
string favicon = 5;
|
|
// Message of the day
|
|
string motd = 6;
|
|
// Version of the server
|
|
string version = 7;
|
|
// List of connected players
|
|
repeated PlayerSample sample = 8;
|
|
}
|