samp.directory
← Scripts y librerías

cubexteam/gomc-ping

Multi-game server ping library for Go. Supports Minecraft Java/Bedrock, FiveM, SA-MP, CS2, Rust, Terraria, DayZ and more.

Herramienta★ 3actualizado may 2026MITGo
Abrir en GitHub

README.md

🚀 gomc-ping

Русская документация здесь 🇷🇺

High-performance multi-game server ping library for Go. Supports Minecraft (Java/Bedrock), Source Engine (Rust, CS2), Terraria, FiveM, and SA-MP. Designed for bots and monitoring systems with built-in caching and proxy-safe protocols.

✨ Supported Games & Protocols

Game / EngineProtocolStatus
Minecraft (Java)Proxy-safe handshake (Hypixel/Cloudflare compatible)✅ Stable
Minecraft (Bedrock)RakNet UDP protocol✅ Stable
Source EngineA2S protocol with Challenge support (Rust, CS2, DayZ, ARK, Valheim, Unturned)✅ Stable
TerrariaTShock REST API / TCP Fallback✅ Stable
FiveM (GTA V)HTTP JSON API (/info.json + /players.json)✅ Stable
SA-MP (GTA SA)SA-MP UDP Query✅ Stable

📦 Installation

go get github.com/cubexteam/gomc-ping

🚀 Usage Examples

Generic Ping (Auto-detect)

import "github.com/cubexteam/gomc-ping"

resp, _ := gomcping.Ping("play.hypixel.net", 25565)
fmt.Println(resp.String())

Game-Specific Ping

// GTA V (FiveM)
fivemResp, _ := gomcping.PingFiveM("95.217.143.11", 30120)

// GTA SA (SA-MP)
sampResp, _ := gomcping.PingSAMP("151.80.47.185", 7777)

// DayZ
dayzResp, _ := gomcping.PingDayZ("1.2.3.4", 2302)

// ARK / Valheim / Unturned
arkResp, _ := gomcping.PingARK("1.2.3.4", 27015)
valheimResp, _ := gomcping.PingValheim("1.2.3.4", 2456)
unturnedResp, _ := gomcping.PingUnturned("1.2.3.4", 27015)

// Rust / CS2
rustResp, _ := gomcping.PingRust("1.2.3.4", 28015)

// Terraria
tResp, _ := gomcping.PingTerraria("my-world.com", 7777)

Save Minecraft Favicon

resp, _ := gomcping.Ping("mc.funtime.su", 25565)
gomcping.SaveFavicon(resp.Favicon, "server_icon.png")

🛠 Features

  • Proxy Compatibility: Special handshake burst to bypass Cloudflare Spectrum.
  • Smart Caching: 1-minute TTL cache to prevent rate-limiting.
  • Clean Output: Automatic MOTD cleaning (removes § and & color codes).
  • Parallel Probing: Probes multiple protocols simultaneously for the fastest response.
  • Zero-Dependency Core: Lightweight and fast.

Built with ❤️ by CubexTeam

cs2dayzfivemgameservergogolanggtaminecarftpingrustsampserver-statusterraria

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha

cubexteam/gomc-ping: Herramienta de SA-MP | samp.directory