MCStatus.NET 1.0.0

dotnet add package MCStatus.NET --version 1.0.0
NuGet\Install-Package MCStatus.NET -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MCStatus.NET" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MCStatus.NET --version 1.0.0
#r "nuget: MCStatus.NET, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MCStatus.NET as a Cake Addin
#addin nuget:?package=MCStatus.NET&version=1.0.0

// Install MCStatus.NET as a Cake Tool
#tool nuget:?package=MCStatus.NET&version=1.0.0

MCStatus

A minimal status checker library for Minecraft servers using the Server List Ping (SLP) interface in C#.

Usage

The library provides a single method that allows you to get all the status information you need! (Well, at least as much as the Server List Ping interface provides.)

var status = await ServerListClient.GetStatusAsync("mc.hypixel.net");
Console.WriteLine($"{status.Players.Online} / {status.Players.Max} players are online!");

If the server is down or something else goes wrong an exception is thrown.

Acknowledgments

Based on the amazing work by https://wiki.vg/!

Issues?

Built primarily for personal use, but if you encounter any problems while using feel free to report them and I'll see what I can do!

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 162 7/3/2023