Skip to content

A lightweight minecraft server status API written in Kotlin. WIP

Notifications You must be signed in to change notification settings

isebasus/compass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📜️ Compass License

A silly lightweight Minecraft server API used for server statuses.

API Calls

The following describes Compass's API calls.

Initialization

This API call is used to initialize a server to the API, so that way calls to ping can be cached.

/v1/init

Response
hostname: String,
port: Int,
protocolVersion: Int,
serverVersion: String,
maxPlayerCount: Int,
playerCount: List,
description: String,
favicon: String,
ping: Long,
averagePing: List,
numberOfPings: Long,
status: ServerError
lastClientPing: Long

Ping

This API call is used after initialization, and the call will now use the API cache. The response will also contain a smaller payload.

/v1/ping

Response
playerCount: List,
ping: Long,
averagePing: List,
numberOfPings: Long,
status: ServerError

About

A lightweight minecraft server status API written in Kotlin. WIP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages