Tsuser1 / mcping

Minecraft Server List Ping tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MC Ping

Query minecraft server via SLP (Server Listing Ping) to retrieve basic information (motd, player count, max players...)

Usage

mcping <host> <port>

Host can be IP address or hostname.

Prints json data sent by server to stdout.

Example

mcping minecraft.project-nemesis.cz 25565
{
  "description":{
    "text":"§e§lMinesis Survival§r§l §b§l1.10§f§l §2§l(Minecraft Project-Nemesis)§r§l\n§7§l   §7§l§k▶▶▶§f§l VIP ECONOMY SURVIVAL LAG-FREE §7§l§k◀◀◀"
  },
    "players":{
      "max":30,
      "online":7,
      "sample":[
      {
        "id":"200d8747-b7f5-38c3-bdd0-c2d341184bd3",
        "name":"Ixy"
      },
      {
        "id":"bd959908-774c-3dab-b008-b55272af822b",
        "name":"Dejf"
      }
      ]
    },
    "version":{
      "name":"Spigot 1.10",
      "protocol":210
    },
    "favicon":"data:image/png;base64,..."
}

Installation

Download binary or build from source and run.

Downloads

Build from source

Linux/Mac

gcc mcping.c -o mcping

Windows

You can use Visual C++ Build Tools or Visual Studio

cl mcping.c

License

MIT License

Copyright (c) 2016 theodik

About

Minecraft Server List Ping tool

License:MIT License


Languages

Language:C 100.0%