Get desktop application:
View/edit binary Protocol Buffers messages
GateService is the service API for managing a Gate proxy instance. It provides methods for managing players and servers. All methods follow standard gRPC error codes and include detailed error messages.
GetPlayer returns the player by the given id or username. Returns NOT_FOUND if the player is not online. Returns INVALID_ARGUMENT if neither id nor username is provided, or if the id format is invalid.
GetPlayerRequest is the request for GetPlayer method.
Gets the player by their Minecraft UUID. Optional, if not set the username will be used. If both id and username are set, the id will be used. Must be a valid Minecraft UUID format (e.g. "550e8400-e29b-41d4-a716-446655440000")
Gets the player by their username. Optional, if not set the id will be used. Case-sensitive.
GetPlayerResponse is the response for GetPlayer method.
The player matching the request criteria
ListPlayers returns all online players. If servers are specified in the request, only returns players on those servers.
ListPlayersRequest is the request for ListPlayers method.
Filter players by server names. Optional, if empty all online players are returned. If specified, only returns players on the listed servers.
ListPlayersResponse is the response for ListPlayers method.
ListServers returns all registered servers.
ListServersRequest is the request for ListServers method.
(message has no fields)
ListServersResponse is the response for ListServers method.
RegisterServer adds a server to the proxy. Returns ALREADY_EXISTS if a server with the same name is already registered. Returns INVALID_ARGUMENT if the server name or address is invalid.
RegisterServerRequest is the request for RegisterServer method.
The unique name of the server
The network address of the server (e.g. "localhost:25565")
RegisterServerResponse is the response for RegisterServer method.
(message has no fields)
UnregisterServer removes a server from the proxy. Returns NOT_FOUND if no matching server is found. Returns INVALID_ARGUMENT if neither name nor address is provided.
UnregisterServerRequest is the request for UnregisterServer method.
The name of the server. Optional, if not set, the address will be used to match servers.
The address of the server. Optional, if not set, the name will be used to match servers. If both name and address are set, only the server that matches both properties exactly will be unregistered. If only the address is set, the first server matching that address will be unregistered.
UnregisterServerResponse is the response for UnregisterServer method.
(message has no fields)
ConnectPlayer connects a player to a specified server. Returns NOT_FOUND if either the player or target server doesn't exist. Returns FAILED_PRECONDITION if the connection attempt fails.
ConnectPlayerRequest is the request for ConnectPlayer method.
The player's username or ID to connect
The target server name to connect the player to
ConnectPlayerResponse is the response for ConnectPlayer method.
(message has no fields)
DisconnectPlayer disconnects a player from the proxy. Returns NOT_FOUND if the player doesn't exist. Returns INVALID_ARGUMENT if the reason text is malformed.
DisconnectPlayerRequest is the request for DisconnectPlayer method.
The player's username or ID to disconnect
The reason displayed to the player when they are disconnected. Formats: - `{"text":"Hello, world!"}` - JSON text component. See https://wiki.vg/Text_formatting for details. - `§aHello,\n§bworld!` - Simple color codes. See https://wiki.vg/Text_formatting#Colors Optional, if empty no reason will be shown.
DisconnectPlayerResponse is the response for DisconnectPlayer method.
(message has no fields)
Player represents an online player on the proxy.
Used in:
,The player's Minecraft UUID
The player's username
Server represents a backend server where Gate can connect players to.
Used in:
The unique name of the server.
The network address of the server.
The number of players currently on the server.