百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

minestat

> 编程语言
开源

:chart_with_upwards_trend: Minecraft 服务器状态检查器

361 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

:chart_with_upwards_trend: Minecraft 服务器状态检查器

MineStat :chart_with_upwards_trend:

MineStat is a Minecraft server status checker.

You can use these classes/modules in a monitoring script to poll multiple Minecraft servers, include similar functionality in a Discord bot, or to let visitors see the status of your server from their browser. MineStat has been ported to multiple languages for use with ASP.NET, FastCGI, mod_perl, mod_php, mod_python, Node.js, Rails, Tomcat, and more.

If you are planning to host MineStat on a shared webhost, make sure that the provider allows outbound sockets.

Protocol Support :telephone_receiver:

Note: The Go, JavaScript, and Perl implementations are currently under development.

Protocol C# Go Java JavaScript Perl PHP PowerShell Python Ruby
1.8b/1.3 (beta) :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
1.4/1.5 (legacy) :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
1.6 (extended legacy) :heavy_check_mark: :x: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
>=1.7 (JSON) :heavy_check_mark: :x: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
Bedrock/PE/RakNet :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
UT3/GS4 Query :x: :x: :x: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:

Examples :memo:

C# example

…

Go example

To use the Go package: go get github.com/FragLand/minestat/Go/minestat

…

Java example

…

JavaScript example

To use the npm package: npm install minestat

…

Perl example

To use the CPAN module: cpan Minecraft::ServerStatus

perl
use Minecraft::ServerStatus;

$ms = Minecraft::ServerStatus::init("minecraft.frag.land", 25565);

print "Minecraft server status of $ms->{address} on port $ms->{port}:\n";
if($ms->{online})
{
  print "Server is online running version $ms->{version} with $ms->{current_players} out of $ms->{max_players} players.\n";
  print "Message of the day: $ms->{motd}\n";
  print "Latency: $ms->{latency}ms\n";
}
else
{
  print "Server is offline!\n";
}

PHP example

Note: MineStat for PHP requires multi-byte string support to handle character encoding conversion. Enabling mbstring support can be as simple as installing the php-mbstring package for your platform. If building PHP from source, see https://www.php.net/manual/en/mbstring.installation.php. To validate, phpinfo() output will reference mbstring if the feature is enabled.

…

PowerShell example

To install the module: Install-Module -Name MineStat

powershell
Import-Module MineStat
$ms = MineStat -Address "minecraft.frag.land" -port 25565
"Minecraft server status of '{0}' on port {1}:" -f $ms.Address, $ms.Port

if ($ms.Online) {
  "Server is online running version {0} with {1} out of {2} players." -f $ms.Version, $ms.Current_Players, $ms.Max_Players
  "Message of the day: {0}" -f $ms.Stripped_Motd
  "Latency: {0}ms" -f $ms.Latency
  "Connected using SLP protocol '{0}'" -f $ms.Slp_Protocol
}else {
  "Server is offline!"
}

Python example

To use the PyPI package: pip install minestat

…

See the Python specific readme (Python/README.md) for a full list of all supported attributes.

Ruby example

To use the gem: gem install minestat

ruby
require 'minestat'

ms = MineStat.new("minecraft.frag.land", 25565)
puts "Minecraft server status of #{ms.address} on port #{ms.port}:"
if ms.online
  puts "Server is online running version #{ms.version} with #{ms.current_players} out of #{ms.max_players} players."
  puts "Game mode: #{ms.mode}" if ms.mode
  puts "Message of the day: #{ms.motd}"
  puts "Message of the day without formatting: #{ms.stripped_motd}"
  puts "Latency: #{ms.latency}ms"
  puts "Connected using protocol: #{ms.request_type}"
else
  puts "Server is offline!"
end

Contributing and Support :octocat:

Feel free to submit an issue if you require assistance or would like to make a feature request. You are also welcome to join us on Matrix. Any contributions such as build testing, creating bug reports or feature requests, and submitting pull requests are appreciated. Our code style guidelines can be found in the "Coding Convention" section of CONTRIBUTING.md. Please see the fork and pull guide if you are not certain how to submit a pull request.

Contributors

  • @Ajoro: C#, PowerShell, and GitHub Actions/automation [2020 - present]
  • Annukka Törmälä (@nukka): Java [2017]
  • Arne Sacnussem (@arnesacnussem): Java [2018]
  • @BlueTree242: Java issue report [2021]
  • @braulio-dev: Feature request [2021]
  • @c0m4r: PHP [2020]
  • @Chew: Ruby issue report [2020]
  • @Conanap: JavaScript issue report [2022]
  • @DeadlineEm: PHP and PowerShell [2023]
  • Felix Ern (@MindSolve): C#, Java, PHP, Python, and GitHub Actions/automation [2019 - present]
  • @grimsi: Java issue report [2020, 2021]
  • Hojeong Go (@seia-soto): JavaScript [2018]
  • Isaac Kogan (@isaackogan): Feature request [2021]
  • @ItsVinnyX: Java issue report [2018, 2020]
  • @Jcodeerd: Python issue report [2021]
  • @Joly0: Java issue report [2021]
  • @Jordan9232: Feature request [2023]
  • @jrdiver: C# [2022]
  • @Junai22: Python issue report [2021]
  • Kolya Venturi (@kolyaventuri): JavaScript [2023]
  • @KyleighD: Ideas and code review [2014 - 2020]
  • Lewis L. Foster (@sniff122): Python issue report [2018]
  • Lloyd Dilley (@ldilley): Lead developer [2014 - present]
  • Lukas Kolletzki (@kolletzki): C# [2017]
  • Marko Pilipovicc (@marko-pilipovicc): Java issue report [2020]
  • @matahombres: PHP issue report [2019]
  • @MegaNarwhal: Java issue report [2017]
  • @mio9: JavaScript issue report [2017]
  • @molanp: PHP and Python [2023 - present]
  • Nate Bendall (@nbendall34): Java issue report [2021]
  • @Nortank12: Python issue report [2019]
  • @Norway174: JavaScript issue report [2017]
  • @Osiris-Team: Java issue report [2021]
  • Ozan Kurt (@OzanKurt): PHP issue report [2019]
  • Pavel Fedin (@amorphine): Go and JavaScript issue report [2018]
  • Phil Rimer: IRC server hosting [2014 - 2020]
  • @Pronner: C# issue report [2022]
  • @Raideerke: Go and JavaScript issue report [2019]
  • Rawora Ramin (@rawora-rg): Java issue report [2020]
  • @RealDrPuc: Python issue report [2020]
  • @rey-dev: Feature request [2021]
  • @RunTheBot: JavaScript [2023]
  • @samdotnet: Java issue report [2020]
  • @Sch8ill: Go and Python [2022 - present]
  • SeongHoon Ryu (@ryush00): Ruby [2024]
  • @sinhpn92: Go and JavaScript issue report [2020]
  • @skybird23333: Java issue report [2020]
  • Sondre Batalden (@Pomdre): PHP issue report [2019]
  • @Spongecade: Python documentation [2023]
  • Stepan Melnikov (@unn4m3d): Ruby [2016]
  • Steven Polglase (@swpolgla): Ruby [2021]
  • @TENIOS: Java [2024]
  • ThisTNTSquid: JavaScript [2017]
  • Tony Publiski (@Tonster): Minecraft and IRC server hosting [2014 - present]
  • Vikas Dongre (@zvikasdongre): Java issue report [2022]
  • wangyw15: C# [2017]
  • @xXBuilderBXx: C# issue report [2017]

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#checkercsharpgogolang

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言