Skip to content

TraceLD/minestat-sharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

126 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MineStat

Actions Status Nuget

MineStat is a Minecraft server status checker.

You can use this library in a monitoring script to poll multiple Minecraft servers or to let visitors see the status of your server from their browser.

Changes compared to original MineStat:

  • C# only.
  • Removed obsolete code.
  • Comes as a Class Library instead of a single .cs file.
  • Packaged as a NuGet package.

Link to original MineStat:

https://github.com/ldilley/minestat

Usage example

MineStat ms = new MineStat("minecraft.dilley.me", 25565);
Console.WriteLine("Minecraft server status of {0} on port {1}:", ms.Address, ms.Port);

if(ms.ServerUp)
{
  Console.WriteLine("Server is online running version {0} with {1} out of {2} players.", ms.Version, ms.CurrentPlayers, ms.MaximumPlayers);
  Console.WriteLine("Message of the day: {0}", ms.Motd);
  Console.WriteLine("Latency: {0}ms", ms.Latency);
}
else
{
  Console.WriteLine("Server is offline!");
}

About

A fork of minestat modified to be a C# only class library available via NuGet.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 100.0%