first commit

This commit is contained in:
2026-04-04 20:01:57 +03:00
commit 383b3fe543
10 changed files with 1159 additions and 0 deletions

43
info/types.go Normal file
View File

@@ -0,0 +1,43 @@
package info
import (
"encoding/json"
"time"
)
type Edition string
const (
EditionJava Edition = "java"
EditionBedrock Edition = "bedrock"
)
type ServerInfo struct {
Edition Edition
Address string
IP string
Port int
MOTD string
Version string
Online int
Slots int
Software string
Plugins []string
Players []string
Game string
Map string
GameMode string
Query bool
Latency time.Duration
Raw json.RawMessage
RawQuery map[string]string
}